diff --git a/vendor/assets/javascripts/build_patches.sh b/vendor/assets/javascripts/build_patches.sh new file mode 100755 index 000000000..931e2a69a --- /dev/null +++ b/vendor/assets/javascripts/build_patches.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +diff -u jquery-ui-autocomplete-1.10.2.js jquery-ui-autocomplete-custom.js > jquery-ui-autocomplete.patch diff --git a/vendor/assets/javascripts/jquery-ui-autocomplete-custom.js b/vendor/assets/javascripts/jquery-ui-autocomplete-custom.js index 7f29fbdf9..9f0399bec 100644 --- a/vendor/assets/javascripts/jquery-ui-autocomplete-custom.js +++ b/vendor/assets/javascripts/jquery-ui-autocomplete-custom.js @@ -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 diff --git a/vendor/assets/javascripts/jquery-ui-autocomplete.patch b/vendor/assets/javascripts/jquery-ui-autocomplete.patch index 7c36ef69a..7459c4899 100644 --- a/vendor/assets/javascripts/jquery-ui-autocomplete.patch +++ b/vendor/assets/javascripts/jquery-ui-autocomplete.patch @@ -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 ); }