Fix Bug 43396
This commit is contained in:
parent
b3943b592d
commit
95184bc8c7
|
@ -355,6 +355,7 @@ define([
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if (e.keyCode == Common.UI.Keys.ESC && this.isMenuOpen()) {
|
else if (e.keyCode == Common.UI.Keys.ESC && this.isMenuOpen()) {
|
||||||
|
this._input.val(this.lastValue);
|
||||||
this.closeMenu();
|
this.closeMenu();
|
||||||
this.onAfterHideMenu(e);
|
this.onAfterHideMenu(e);
|
||||||
return false;
|
return false;
|
||||||
|
@ -420,6 +421,7 @@ define([
|
||||||
var me = this;
|
var me = this;
|
||||||
|
|
||||||
if (e.keyCode == Common.UI.Keys.ESC){
|
if (e.keyCode == Common.UI.Keys.ESC){
|
||||||
|
this._input.val(this.lastValue);
|
||||||
this.closeMenu();
|
this.closeMenu();
|
||||||
this.onAfterHideMenu(e);
|
this.onAfterHideMenu(e);
|
||||||
} else if (e.keyCode == Common.UI.Keys.UP || e.keyCode == Common.UI.Keys.DOWN) {
|
} else if (e.keyCode == Common.UI.Keys.UP || e.keyCode == Common.UI.Keys.DOWN) {
|
||||||
|
|
|
@ -364,6 +364,9 @@ define([
|
||||||
} else {
|
} else {
|
||||||
this._fromKeyDown = true;
|
this._fromKeyDown = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (e.keyCode == Common.UI.Keys.ESC)
|
||||||
|
this.setRawValue(this.value);
|
||||||
if (e.keyCode==Common.UI.Keys.RETURN || e.keyCode==Common.UI.Keys.ESC)
|
if (e.keyCode==Common.UI.Keys.RETURN || e.keyCode==Common.UI.Keys.ESC)
|
||||||
this.trigger('inputleave', this);
|
this.trigger('inputleave', this);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue