Doubletap on textfield

In my mobile app, I have a FormPanel with a fieldset with textfields that could have been filled from some desktop application, by a skilled secretary with well beyond 300 keystrokes per minute.

So I want to provide the possibility to open a bigger field on doubletap onto the textfield, but I can't get the listener to work.

As of now, my code looks like this:

config:{
    ...
    listeners : [{
        fn:'onClearIconTap',
        event:'clearicontap',
        delegate:'textfield'
    },{
        fn:'onItemDblTap',//'onTextFieldDblTap',
        event:'itemdoubletap',//'doubletap'
        //delegate:'fieldset'//'textfield'
    }]

The clearIconTap event is fired, but I can't get the doubletap to work.

How can I listen to that event?

Answers


That is expected behaviour, if you check Ext.field.Text documentation the doubletap event is not exposed by that component. That is a design choice for performance reason, they chose to listen to and expose only the events they considered relevant for each component.

That said, you can listen to events directly on the Ext.dom.Element associated to that component:

Try this:

{
    fn:'onItemDblTap',
    event:'doubletap',
    element: 'element'
}

Need Your Help

Error building hadoop 1.0.1 - missing pom.xml

maven ubuntu hadoop

I followed the instructions given here to download and build hadoop 1.0.1 from this repository. I have installed JDK, Maven, cmake, autoconf etc. When I run th efollowing command from the hadoop top

Python 3.4 SSL error urlopen error EOF occurred in violation of protocol (_ssl.c:600)

python python-3.x ssl python-3.4

I use Arch Linux, python 3.4, openSSL 1.0.2d. When I make request to https://www.supercash.cz/ I get this error. It doesn't matter if I use requests or build in urllib there is always the same erro...