1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 10:18:00 +01:00

Unbreak commandline.input().

This commit is contained in:
Kris Maglione
2008-09-15 22:44:48 +00:00
parent 4d7105f2bc
commit ba98a3821a
2 changed files with 4 additions and 2 deletions

View File

@@ -128,7 +128,8 @@ liberator.CommandLine = function () //{{{
promptCallback = null;
currentExtendedMode = null;
liberator.commandline.clear();
callback(value);
if (callback)
callback(value);
}
liberator.registerCallback("cancel", liberator.modes.PROMPT, closePrompt);
liberator.registerCallback("submit", liberator.modes.PROMPT, closePrompt);
@@ -610,6 +611,7 @@ liberator.CommandLine = function () //{{{
if (liberator.events.isAcceptKey(key))
{
var mode = currentExtendedMode; // save it here, as setMode() resets it
currentExtendedMode = null;
history.add(command);
liberator.modes.pop();
completionlist.hide();