Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member KimSchneider's Avatar
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    68
    Vote Rating
    0
    KimSchneider is on a distinguished road

      0  

    Default forceSelection and TAB key

    forceSelection and TAB key


    Hi,

    got the following situation:

    One combobox with forceSelection: true and the other has forceSelection: false

    As I enter a search string, a dropdown list is shown and the first record is hovered by default. If I hit TAB on the forceSelection: false box, the record is selected. If I press TAB on the forceSelection: true box the record is NOT selected.

    Is this a bug or just some kind of a strange usability feature?

    Ext Version is 3.2.1
    Kim Schneider
    Lead Developer

    Server-Eye
    Alte Koßmannschule
    Koßmannstraße 7
    66571 Eppelborn
    Germany

    Email: kim.schneider@server-eye.de
    Homepage: www.server-eye.de

    Do you know our revolution in network- and servermonitoring?
    www.server-eye.de

  2. #2
    Ext JS Premium Member
    Join Date
    Aug 2007
    Location
    Antwerp, Belgium
    Posts
    553
    Vote Rating
    25
    joeri has a spectacular aura about joeri has a spectacular aura about

      0  

    Default


    The behavior seems to be by design, the code that does this is in Combo.js:
    Code:
                "tab" : function(e){
                    if (this.forceSelection === true) {
                        this.collapse();
                    } else {
                        this.onViewClick(false);
                    }
                    return true;
                },
    I needed the same behavior you need, tab always selects the item, so I implemented it like this:
    Code:
    {
       xtype: 'combo',
       ...
       forceSelection: true,
       // override default to select item on tab
       initEvents: function() {
         Ext.form.ComboBox.prototype.initEvents.apply(this, arguments);
         this.keyNav.tab = function() {
           this.onViewClick(false);
           return true;
         };
       },
    ...

Similar Threads

  1. How to use enter key but tab key to move focus in the editorGridPanle
    By wguo in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 2 Aug 2010, 12:00 PM
  2. Simulate tab key by pressing enter key
    By hpet in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 29 Jun 2009, 1:38 AM
  3. [HLP]Translate the Key.Enter to the Key.Tab
    By erichua in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 26 Sep 2008, 9:17 AM

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar