From 3e0e530cae34bd8d5c9bb45a78923a9bfbc256ca Mon Sep 17 00:00:00 2001 From: Christopher Lenz Date: Thu, 8 Jan 2009 22:04:00 +0000 Subject: 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 --- share/www/replicator.html | 1 - share/www/script/jquery.suggest.js | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'share/www') diff --git a/share/www/replicator.html b/share/www/replicator.html index 32ad52cd..e5442a02 100644 --- a/share/www/replicator.html +++ b/share/www/replicator.html @@ -42,7 +42,6 @@ specific language governing permissions and limitations under the License. }); }); - $.couch.allDbs({ success: function(dbs) { $("fieldset select").each(function() { 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 || -- cgit v1.2.3