Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1021 in a recent build.
  1. #1
    Ext Premium Member
    Join Date
    Sep 2009
    Posts
    48
    Vote Rating
    1
    yoh.suzuki is on a distinguished road

      0  

    Default [PR1] Moving from a textfield to a selectfield does not hide the keyboard

    [PR1] Moving from a textfield to a selectfield does not hide the keyboard


    REQUIRED INFORMATION

    Version:
    • Sencha Touch 2.0 PR1
    Browser versions tested against:
    • Android 2.3
    • iPhone 3GS 4.3.5 Safari
    DOCTYPE tested against:
    • <!DOCTYPE html>
    Description:
    • When you go from a textfield to a selectfield, the keyboard should be hidden. Instead, the keyboard remains on the screen, covering up the picker.
    Test Case:

    Code:
    Ext.setup({    
        onReady: function() {
            Ext.Viewport.add(Ext.create('Ext.form.Panel', {
                items: [
                    {
                        xtype:'fieldset',
                        title:'wut',
                        items:[
                            { xtype: 'textfield', label: 'textfield' },
                            { xtype:'selectfield', label: 'selectfield' }
                        ]
                    }
                ]
            }));
        }
    });

  2. #2
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Thank you for the report.

  3. #3
    Ext Premium Member
    Join Date
    Sep 2009
    Posts
    48
    Vote Rating
    1
    yoh.suzuki is on a distinguished road

      0  

    Default PR2

    PR2


    Additional note: The text field that originally had focus appears to still have focus. Sometimes it appears on top of the mask when the picker sheet is visible.

    I need to bump this by saying that this bug still exists in PR2 and makes Android forms with select fields virtually unusable. Does anyone have a workaround?

    A better example of this:

    Code:
    Ext.define('SelectModel', { extend: 'Ext.data.Model', fields: [    { name:'V', type:'int' },
        { name:'D', type:'string' }
    ]});
    
    
    Ext.setup({
        onReady: function() {
            Ext.Viewport.add(Ext.create('Ext.form.Panel', {
                items: [
                    {
                        xtype:'fieldset',
                        title:'wut',
                        items:[
                            { xtype: 'textfield', label: 'textfield' },
                            Ext.create('Ext.form.Select', {
                                name:  'Select', valueField:'V', displayField:'D',
                                label: 'Select (incorrect)',
                                store: Ext.create('Ext.data.JsonStore', {
                                    model: 'SelectModel',
                                    data: [
                                        {V: 0, D: 'Selection_0'},
                                        {V: 1, D: 'Selection_1'},
                                        {V: 2, D: 'Selection_2'}
                                    ]
                                })
                            })
                        ]
                    }
                ]
            }));
        }
    });

  4. #4
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    So, in the next release I have added Ext.hideKeyboard, and this will be called when you show a select field popup/picker. This should fix your issue.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  5. #5
    Ext Premium Member
    Join Date
    Sep 2009
    Posts
    48
    Vote Rating
    1
    yoh.suzuki is on a distinguished road

      0  

    Default


    That's fantastic! I've been hoping for a way to hide the keyboard. In fact, I couldn't figure out how to reliably do this with just JavaScript (without interfacing with a native call). I look forward to reading that code when PR3 or Beta is out.

    However, I'm not sure this solves all of the problems. One of the weird things happening on Android is that the original text field is sometimes still blinking with focus under the mask. Sometimes a stray click brings that text field input above the mask. Sometimes a different stray click brings the masked input of the select field to focus above the mask and above the picker. I've got my fingers crossed that your fix solves these problems as well. I will test it when your fix is out.

  6. #6
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    Well, when you call hideKeyboard, it actually removes the focus from the current field too, so the cursor has been removed.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  7. #7
    Ext Premium Member
    Join Date
    Sep 2009
    Posts
    48
    Vote Rating
    1
    yoh.suzuki is on a distinguished road

      0  

    Default


    Awesome. Thank you!

  8. #8
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    17
    Vote Rating
    0
    florian.neumair is on a distinguished road

      0  

    Default


    I work with sencha touch 2.0.1.1 and i can to say it is fixed. If i go on Android from textfield to selectfield the keyboard is not hidden.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."