Fix Bug 43396

This commit is contained in:
Julia Radzhabova 2019-12-10 15:30:32 +03:00
parent b3943b592d
commit 95184bc8c7
2 changed files with 5 additions and 0 deletions

View file

@ -355,6 +355,7 @@ define([
return false;
}
else if (e.keyCode == Common.UI.Keys.ESC && this.isMenuOpen()) {
this._input.val(this.lastValue);
this.closeMenu();
this.onAfterHideMenu(e);
return false;
@ -420,6 +421,7 @@ define([
var me = this;
if (e.keyCode == Common.UI.Keys.ESC){
this._input.val(this.lastValue);
this.closeMenu();
this.onAfterHideMenu(e);
} else if (e.keyCode == Common.UI.Keys.UP || e.keyCode == Common.UI.Keys.DOWN) {

View file

@ -364,6 +364,9 @@ define([
} else {
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)
this.trigger('inputleave', this);
},