Skip to content
Snippets Groups Projects
Commit ff28fc88 authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Prevent autocomplete search on refresh.

parent c2000add
No related merge requests found
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
input.keyup(function(event) { input.keyup(function(event) {
// Ignore navigation keys // Ignore navigation keys
// - Ignore control functions // - Ignore control functions
if (event.ctrlKey) { if (event.ctrlKey || event.which === 17) {
return; return;
} }
// - Function keys (F1 - F15) // - Function keys (F1 - F15)
...@@ -171,6 +171,10 @@ ...@@ -171,6 +171,10 @@
} }
}); });
input.keydown(function(event) { input.keydown(function(event) {
// - Ignore control functions
if (event.ctrlKey || event.which === 17) {
return;
}
var element = $.fn.autocomplete.element; var element = $.fn.autocomplete.element;
var position = $(this).data('selected'); var position = $(this).data('selected');
switch (event.which) { switch (event.which) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment