1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 22:07:58 +01:00

Fix resetting completions (hopefully)

This commit is contained in:
Martin Stubenschrott
2009-02-01 23:40:28 +01:00
parent 894a4c52a0
commit f3971d13b5

View File

@@ -1274,7 +1274,8 @@ function CommandLine() //{{{
} }
else if (event.type == "input") 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); liberator.triggerCallback("change", currentExtendedMode, command);
} }
else if (event.type == "keypress") else if (event.type == "keypress")
@@ -1322,7 +1323,7 @@ function CommandLine() //{{{
else if (key == "<BS>") else if (key == "<BS>")
{ {
// reset the tab completion // reset the tab completion
this.resetCompletions(); //this.resetCompletions();
// and blur the command line if there is no text left // and blur the command line if there is no text left
if (command.length == 0) if (command.length == 0)
@@ -1333,7 +1334,7 @@ function CommandLine() //{{{
} }
else // any other key else // any other key
{ {
this.resetCompletions(); //this.resetCompletions();
} }
return true; // allow this event to be handled by Firefox return true; // allow this event to be handled by Firefox
} }