mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 17:57:58 +01:00
Fix resetting completions (hopefully)
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user