From c501945ee1ae1a38c74841f5dd61ad144367bb76 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Wed, 29 Oct 2008 02:46:13 +0000 Subject: [PATCH] Beep when the commandline loses focus --- content/ui.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/content/ui.js b/content/ui.js index dab061e7..2cb07495 100644 --- a/content/ui.js +++ b/content/ui.js @@ -706,8 +706,12 @@ function CommandLine() //{{{ setTimeout(function () { if (liberator.mode == modes.COMMAND_LINE && !(modes.extended & modes.INPUT_MULTILINE) && - !(modes.extended & modes.OUTPUT_MULTILINE)) - commandWidget.inputField.focus(); + !(modes.extended & modes.OUTPUT_MULTILINE) && + event.originalTarget == commandWidget.inputField) + { + commandWidget.inputField.focus(); + liberator.beep(); + } }, 0); } else if (event.type == "focus")