PDA

View Full Version : ComboBox KeyNav Tab Changes



jisaac01
1 Jul 2011, 3:42 PM
I'm moving from Ext3.0 to Ext3.4, and noticed this change in ComboBox:

//Old

this.keyNav = new Ext.KeyNav(this.el, {
<snip>
"tab" : function(e){
this.onViewClick(false);
return true;
},//New

this.keyNav = new Ext.KeyNav(this.el, {
<snip>
"tab" : function(e){
if (this.forceSelection === true) {
this.collapse();
} else {
this.onViewClick(false);
}
return true;
},This breaks all kinds of combos in my app where I have forceSelection true and expect the user to be able to tab out of the combo and select the item they were on.

Any idea why this changed? Am I missing something in the big picture?

skirtle
5 Jul 2011, 11:27 AM
I don't know why it was changed, I guess the new behaviour was what the majority of user's expected. That said, you should be able to change it back quite easily. See the docs for combobox's keyNav property for an example of what you're trying to do.

jisaac01
5 Jul 2011, 12:33 PM
Right - changing it back was simple enough. I'm just mildly concerned that maybe there was something else that changed in concert (e.g. some new tab default property) that I missed.