aboutsummaryrefslogtreecommitdiffstats
path: root/ui/autocomplete.js
diff options
context:
space:
mode:
authorYermo Lamers <yml@yml.com>2014-02-04 16:47:26 -0500
committerScott González <scott.gonzalez@gmail.com>2014-07-24 17:00:55 -0400
commit930bc7df666c997add9978d3cc3139559e71ae77 (patch)
treebece8347ceeef2db3e852bde10e5a4346df0fc32 /ui/autocomplete.js
parent5beae72e7773d35d46195a4359cb8f845dfb0f4f (diff)
downloadjquery-ui-930bc7df666c997add9978d3cc3139559e71ae77.tar.gz
jquery-ui-930bc7df666c997add9978d3cc3139559e71ae77.zip
Autocomplete: ESCAPE should not change content of a MultiLine
Fixes #9790 Closes gh-1190
Diffstat (limited to 'ui/autocomplete.js')
-rw-r--r--ui/autocomplete.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/autocomplete.js b/ui/autocomplete.js
index d53a1d5e3..3f428ea3d 100644
--- a/ui/autocomplete.js
+++ b/ui/autocomplete.js
@@ -130,7 +130,9 @@ $.widget( "ui.autocomplete", {
break;
case keyCode.ESCAPE:
if ( this.menu.element.is( ":visible" ) ) {
- this._value( this.term );
+ if ( !this.isMultiLine ) {
+ this._value( this.term );
+ }
this.close( event );
// Different browsers have different default behavior for escape
// Single press can mean undo or clear