From f3971d13b51dfe977b35dd1c9b95c5b5bf8664fb Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Sun, 1 Feb 2009 23:40:28 +0100 Subject: [PATCH] Fix resetting completions (hopefully) --- common/content/ui.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/common/content/ui.js b/common/content/ui.js index a9705489..c5493831 100644 --- a/common/content/ui.js +++ b/common/content/ui.js @@ -1274,7 +1274,8 @@ function CommandLine() //{{{ } else if (event.type == "input") { - //this.resetCompletions(); -> already handled by "keypress" below (hopefully), so don't do it twice + liberator.dump("input: " + command); + this.resetCompletions(); // -> already handled by "keypress" below (hopefully), so don't do it twice liberator.triggerCallback("change", currentExtendedMode, command); } else if (event.type == "keypress") @@ -1322,7 +1323,7 @@ function CommandLine() //{{{ else if (key == "") { // reset the tab completion - this.resetCompletions(); + //this.resetCompletions(); // and blur the command line if there is no text left if (command.length == 0) @@ -1333,7 +1334,7 @@ function CommandLine() //{{{ } else // any other key { - this.resetCompletions(); + //this.resetCompletions(); } return true; // allow this event to be handled by Firefox }