PDA

View Full Version : [FIXED] [5.0.2 nightly]



fl.borovsky
19 Sep 2014, 2:41 AM
In newest nightly build, there is a typo in Ext.Editor:



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);
},

evant
19 Sep 2014, 2:59 AM
We'll get this fixed up, thanks.