]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete: Don't trigger a search when the left or right arrow keys are used.
authorScott González <scott.gonzalez@gmail.com>
Sat, 20 Mar 2010 18:58:38 +0000 (14:58 -0400)
committerScott González <scott.gonzalez@gmail.com>
Sat, 20 Mar 2010 18:58:38 +0000 (14:58 -0400)
Fixes #5289 - Autocomplete: ignore cursor left/right.

ui/jquery.ui.autocomplete.js

index c5b78a6e350127b5ab9802d62840550c07c44624..60ba69f89edae8c4d92a7e9d7ef76b838b6294f3 100644 (file)
@@ -66,6 +66,8 @@ $.widget( "ui.autocomplete", {
                                        self.element.val( self.term );
                                        self.close( event );
                                        break;
+                               case keyCode.LEFT:
+                               case keyCode.RIGHT:
                                case keyCode.SHIFT:
                                case keyCode.CONTROL:
                                case 18: