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

disable beep on command line blur, as it has side effects. Also fixes :message in muttator

This commit is contained in:
Martin Stubenschrott
2008-10-30 23:21:00 +00:00
parent 8928c81404
commit 775ae63515
3 changed files with 7 additions and 5 deletions

View File

@@ -521,7 +521,7 @@ function Events() //{{{
} }
else // background tab else // background tab
{ {
liberator.echomsg("Background tab loaded: " + title || url, 1); liberator.echomsg("Background tab loaded: " + title || url, 3);
} }
triggerLoadAutocmd("PageLoad", doc); triggerLoadAutocmd("PageLoad", doc);

View File

@@ -333,7 +333,7 @@ function Mail() //{{{
// SENDING MESSAGES // SENDING MESSAGES
mappings.add(myModes, ["m"], mappings.add(myModes, ["m"],
"Compose a new message", "Compose a new message",
function () { commandline.open(":", "message -subject=", modes.EX); }); function () { commandline.open(":", "mail -subject=", modes.EX); });
mappings.add(myModes, ["M"], mappings.add(myModes, ["M"],
"Compose a new message to the sender of selected mail", "Compose a new message to the sender of selected mail",
@@ -342,7 +342,7 @@ function Mail() //{{{
try try
{ {
var to = escapeRecipient(gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor); var to = escapeRecipient(gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor);
commandline.open(":", "message " + to + " -subject=", modes.EX); commandline.open(":", "mail " + to + " -subject=", modes.EX);
} }
catch (e) catch (e)
{ {
@@ -683,7 +683,7 @@ function Mail() //{{{
count: true count: true
}); });
commands.add(["m[essage]"], commands.add(["m[ail]"],
"Write a new message", "Write a new message",
function (args) function (args)
{ {

View File

@@ -718,7 +718,9 @@ function CommandLine() //{{{
event.originalTarget == commandWidget.inputField) event.originalTarget == commandWidget.inputField)
{ {
commandWidget.inputField.focus(); 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); }, 0);
} }