PDA

View Full Version : KeyBoard Navigation



rajindarr
26 Aug 2013, 3:53 AM
We enabled the focusmanager to follow the extjs defined keyboard navigation.

As per the extjs defined keyboard navigation, if we press the tab the flow should be between the component in a panel.

so in our page we placed the fields in a fieldset and the last field is date field as in attachment.

But in our case the last field is date field, when the focus is on date field pressing the tab is going out of the fieldset, but the navigation should be inside the fieldset?

after seeing the code in trigger.js the below code is removing the wrap class? so the focus is going out of fieldset to the button when using Tab Key.



// private
onFocus: function() {
var me = this;
me.callParent(arguments);
if (!me.mimicing) {
me.bodyEl.addCls(me.wrapFocusCls);
me.mimicing = true;
me.mon(me.doc, 'mousedown', me.mimicBlur, me, {
delay: 10
});
if (me.monitorTab) {
me.on('specialkey', me.checkTab, me);
}
}
},


// private
checkTab: function(me, e) {
if (!this.ignoreMonitorTab && e.getKey() == e.TAB) {
this.triggerBlur();
}
},

Gary Schlosberg
28 Aug 2013, 10:38 AM
Bug filed: www.sencha.com/forum/showthread.php?270706