diff options
author | Christopher Lenz <cmlenz@apache.org> | 2009-01-08 22:04:00 +0000 |
---|---|---|
committer | Christopher Lenz <cmlenz@apache.org> | 2009-01-08 22:04:00 +0000 |
commit | 3e0e530cae34bd8d5c9bb45a78923a9bfbc256ca (patch) | |
tree | 72e73ce5e02e462835e198f84885b3e856e87855 /share/www/script/jquery.suggest.js | |
parent | 539a418b1d7bfbffdcb377a7a9a43fd1a3753b6a (diff) |
Make the autocomplete in Futon a bit more robust, especially in Safari.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@732844 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/jquery.suggest.js')
-rw-r--r-- | share/www/script/jquery.suggest.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/share/www/script/jquery.suggest.js b/share/www/script/jquery.suggest.js index 4bb8b2d0..bc0dfbf8 100644 --- a/share/www/script/jquery.suggest.js +++ b/share/www/script/jquery.suggest.js @@ -27,9 +27,13 @@ input .blur(function() { + if (timer) clearTimeout(timer); setTimeout(function() { dropdown.hide() }, 200); }) .keydown(function(e) { + if ($.inArray(e.keyCode, [16, 17, 18, 20, 144, 91, 93, 224]) != -1) { + return; // ignore modifier keys + } if (timer) clearTimeout(timer); if ($.inArray(e.keyCode, [38, 40]) != -1 || (dropdown.is(":visible") && (e.keyCode == 27 || |