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

Beep when the commandline loses focus

This commit is contained in:
Kris Maglione
2008-10-29 02:46:13 +00:00
parent a3b5c6c78e
commit c501945ee1

View File

@@ -706,8 +706,12 @@ function CommandLine() //{{{
setTimeout(function () {
if (liberator.mode == modes.COMMAND_LINE &&
!(modes.extended & modes.INPUT_MULTILINE) &&
!(modes.extended & modes.OUTPUT_MULTILINE))
!(modes.extended & modes.OUTPUT_MULTILINE) &&
event.originalTarget == commandWidget.inputField)
{
commandWidget.inputField.focus();
liberator.beep();
}
}, 0);
}
else if (event.type == "focus")