mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 10:37:59 +01:00
disable beep on command line blur, as it has side effects. Also fixes :message in muttator
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user