diff options
author | Jason Moon <jmoon@socialcast.com> | 2013-03-20 17:42:34 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2013-04-25 13:17:21 -0400 |
commit | f5f08791536e689e008b04d6ea9677811353d456 (patch) | |
tree | 8fb30bba573f1761108e6a40965eac72cf9994a6 /ui/jquery.ui.autocomplete.js | |
parent | cc378433ab776dee8b75c4ece7df92bfe1300aaf (diff) | |
download | jquery-ui-f5f08791536e689e008b04d6ea9677811353d456.tar.gz jquery-ui-f5f08791536e689e008b04d6ea9677811353d456.zip |
Autocomplete: Don't prevent keypress for multiline. Fixed #8911 - Autocomplete: Unable to use up/down arrow keys in a textarea (Firefox).
Diffstat (limited to 'ui/jquery.ui.autocomplete.js')
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index 5e798d55d..2f303ca6e 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -138,7 +138,9 @@ $.widget( "ui.autocomplete", { keypress: function( event ) { if ( suppressKeyPress ) { suppressKeyPress = false; - event.preventDefault(); + if ( !this.isMultiLine || this.menu.element.is( ":visible" ) ) { + event.preventDefault(); + } return; } if ( suppressKeyPressRepeat ) { |