Previously we patched the jqueryui-autocomplete library in order to customize how the Tab and Enter keys behaved. Specifically, we wanted to prevent the Tab key from moving the focus out of the tag input box, and we wanted to prevent the Enter key from submitting the page when editing tags. These things can achieved without patching the library by using `event.preventDefault` and `event.stopImmediatePropagation` to prevent other event handlers from running after these keys trigger the `autocompleteselect` event.
15 lines
415 B
JavaScript
15 lines
415 B
JavaScript
//= require hammer.min.js
|
|
//= require jquery-1.11.1.min.js
|
|
//= require jquery-ui-1.11.2.min.js
|
|
//= require jquery.hotkeys.js
|
|
//= require jquery.timeout.js
|
|
//= require jquery-ui-autocomplete-1.11.2.js
|
|
//= require jquery.storageapi.js
|
|
//= require jquery.dropdown.min.js
|
|
//= require jquery.hammer.js
|
|
//= require ugoira_player.js
|
|
//= require stupidtable.js
|
|
//= require rails.js
|
|
//= require common.js
|
|
//= require_tree .
|