Don't apply settings when press Enter on textarea
This commit is contained in:
parent
de7d627141
commit
622298f6be
|
@ -161,11 +161,12 @@ define([
|
||||||
if (e.isDefaultPrevented())
|
if (e.isDefaultPrevented())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (e.keyCode === Common.UI.Keys.RETURN)
|
if (e.keyCode === Common.UI.Keys.RETURN) {
|
||||||
this._doChange(e);
|
e.stopPropagation();
|
||||||
|
}
|
||||||
if (e.keyCode == Common.UI.Keys.ESC)
|
if (e.keyCode == Common.UI.Keys.ESC)
|
||||||
this.setValue(this.value);
|
this.setValue(this.value);
|
||||||
if (e.keyCode==Common.UI.Keys.RETURN || e.keyCode==Common.UI.Keys.ESC)
|
if (e.keyCode==Common.UI.Keys.ESC)
|
||||||
this.trigger('inputleave', this);
|
this.trigger('inputleave', this);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue