From 775ae6351505e7ac708bee25a378f2ca02cea685 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Thu, 30 Oct 2008 23:21:00 +0000 Subject: [PATCH] disable beep on command line blur, as it has side effects. Also fixes :message in muttator --- content/events.js | 2 +- content/mail.js | 6 +++--- content/ui.js | 4 +++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/content/events.js b/content/events.js index b9f5f24e..721631e1 100644 --- a/content/events.js +++ b/content/events.js @@ -521,7 +521,7 @@ function Events() //{{{ } else // background tab { - liberator.echomsg("Background tab loaded: " + title || url, 1); + liberator.echomsg("Background tab loaded: " + title || url, 3); } triggerLoadAutocmd("PageLoad", doc); diff --git a/content/mail.js b/content/mail.js index 8762fa97..73ff6bdf 100644 --- a/content/mail.js +++ b/content/mail.js @@ -333,7 +333,7 @@ function Mail() //{{{ // SENDING MESSAGES mappings.add(myModes, ["m"], "Compose a new message", - function () { commandline.open(":", "message -subject=", modes.EX); }); + function () { commandline.open(":", "mail -subject=", modes.EX); }); mappings.add(myModes, ["M"], "Compose a new message to the sender of selected mail", @@ -342,7 +342,7 @@ function Mail() //{{{ try { var to = escapeRecipient(gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor); - commandline.open(":", "message " + to + " -subject=", modes.EX); + commandline.open(":", "mail " + to + " -subject=", modes.EX); } catch (e) { @@ -683,7 +683,7 @@ function Mail() //{{{ count: true }); - commands.add(["m[essage]"], + commands.add(["m[ail]"], "Write a new message", function (args) { diff --git a/content/ui.js b/content/ui.js index fe2468b9..6f949c3a 100644 --- a/content/ui.js +++ b/content/ui.js @@ -718,7 +718,9 @@ function CommandLine() //{{{ event.originalTarget == commandWidget.inputField) { commandWidget.inputField.focus(); - liberator.beep(); + // a beep would be nice, but unfortunately firefox also fires + // this event when switching windows while the command line has focus + // liberator.beep(); } }, 0); }