autocomplete: remove old enter key workaround.

Remove an old workaround designed to prevent pressing the Enter key in
autocomplete from submitting the upload or tag edit.
This commit is contained in:
evazion
2021-10-13 03:52:41 -05:00
parent 206a4b5de5
commit d771f6f41b

View File

@@ -81,12 +81,6 @@ Autocomplete.initialize_tag_autocomplete = function() {
$fields_multiple.autocomplete({
select: function(event, ui) {
// Prevent Upload.initialize_enter_on_tags from running if the
// Enter key is used to select a tag from the autocomplete menu.
if (event.key === "Enter") {
event.stopImmediatePropagation();
}
Autocomplete.insert_completion(this, ui.item.value);
return false;
},