* space will now select an item in the autocomplete
This commit is contained in:
r888888888
2013-06-21 11:36:23 -07:00
parent c85f31f2a5
commit 451552ea7f
3 changed files with 14 additions and 2 deletions

3
vendor/assets/javascripts/build_patches.sh vendored Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
diff -u jquery-ui-autocomplete-1.10.2.js jquery-ui-autocomplete-custom.js > jquery-ui-autocomplete.patch

View File

@@ -106,6 +106,7 @@ $.widget( "ui.autocomplete", {
suppressKeyPress = true;
this._keyEvent( "next", event );
break;
case keyCode.SPACE:
case keyCode.ENTER:
case keyCode.NUMPAD_ENTER:
// when menu is open and has focus

View File

@@ -1,6 +1,14 @@
--- jquery-ui-autocomplete-1.10.2.js 2013-06-21 11:19:32.000000000 -0700
+++ jquery-ui-autocomplete-custom.js 2013-06-21 11:20:52.000000000 -0700
@@ -121,6 +121,7 @@
+++ jquery-ui-autocomplete-custom.js 2013-06-21 11:34:35.000000000 -0700
@@ -106,6 +106,7 @@
suppressKeyPress = true;
this._keyEvent( "next", event );
break;
+ case keyCode.SPACE:
case keyCode.ENTER:
case keyCode.NUMPAD_ENTER:
// when menu is open and has focus
@@ -121,6 +122,7 @@
if ( this.menu.active ) {
this.menu.select( event );
}