Success! Looks like we've fixed this one. According to our records the fix was applied for
a bug in our system
in
a recent build.[5.0.2 nightly]
[5.0.2 nightly]
In newest nightly build, there is a typo in Ext.Editor:
Code:
onSpecialKey: function(field, event) {
var me = this,
key = event.getKey(),
complete = me.completeOnEnter && key === event.ENTER,
cancel = me.cancelOnEsc && key === event.ESC,
task = me.specialKeyTask;
if (complete || cancel) {
event.stopEvent();
if (!task) {
me.specialKeyTask = task = new Ext.util.DelayedTask();
}
// Must defer this slightly to prevent exiting edit mode before the field's own
// key nav can handle the enter key, e.g. selecting an item in a combobox list
task.delay(me.specialKeyDelay, complete ? me.completEdit : me.cancelEdit, me);
//<debug>
// Makes unit testing easier
if (me.specialKeyDelay === 0) {
task.cancel();
if (complete) {
me.completeEdit();
} else {
me.cancelEdit();
}
}
//</debug>
}
me.fireEvent('specialkey', me, field, event);
},
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
[FIXED] [5.0.2 nightly]
Aucun commentaire:
Enregistrer un commentaire