summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2018-11-16 21:53:49 +0800
committerFranklinDM <mrmineshafter17@gmail.com>2018-11-16 21:53:49 +0800
commit15afe680798ed70ded4e02621bb0c6229d5e5fb5 (patch)
tree4a45d21372f64f1dc906008fd45209d768d391b1 /application
parentae48428aa3f5e45db068106e825e23e80f1a1a55 (diff)
downloadUXP-15afe680798ed70ded4e02621bb0c6229d5e5fb5.tar
UXP-15afe680798ed70ded4e02621bb0c6229d5e5fb5.tar.gz
UXP-15afe680798ed70ded4e02621bb0c6229d5e5fb5.tar.lz
UXP-15afe680798ed70ded4e02621bb0c6229d5e5fb5.tar.xz
UXP-15afe680798ed70ded4e02621bb0c6229d5e5fb5.zip
Issue #638 - Part 3: Add a keyboard shortcut for toggling the tab mute state
Diffstat (limited to 'application')
-rw-r--r--application/palemoon/base/content/browser-sets.inc2
-rw-r--r--application/palemoon/locales/en-US/chrome/browser/browser.dtd2
2 files changed, 4 insertions, 0 deletions
diff --git a/application/palemoon/base/content/browser-sets.inc b/application/palemoon/base/content/browser-sets.inc
index 25794a65c..78fce2670 100644
--- a/application/palemoon/base/content/browser-sets.inc
+++ b/application/palemoon/base/content/browser-sets.inc
@@ -32,6 +32,7 @@
<command id="cmd_printPreview" oncommand="PrintUtils.printPreview(PrintPreviewListener);"/>
<command id="cmd_close" oncommand="BrowserCloseTabOrWindow()"/>
<command id="cmd_closeWindow" oncommand="BrowserTryToCloseWindow()"/>
+ <command id="cmd_toggleMute" oncommand="gBrowser.selectedTab.toggleMuteAudio()"/>
<command id="cmd_ToggleTabsOnTop" oncommand="TabsOnTop.toggle()"/>
<command id="cmd_CustomizeToolbars" oncommand="BrowserCustomizeToolbar()"/>
<command id="cmd_restartApplication" oncommand="restart(false);"/>
@@ -212,6 +213,7 @@
<key id="printKb" key="&printCmd.commandkey;" command="cmd_print" modifiers="accel"/>
<key id="key_close" key="&closeCmd.key;" command="cmd_close" modifiers="accel"/>
<key id="key_closeWindow" key="&closeCmd.key;" command="cmd_closeWindow" modifiers="accel,shift"/>
+ <key id="key_toggleMute" key="&toggleMuteCmd.key;" command="cmd_toggleMute" modifiers="control"/>
<key id="key_undo"
key="&undoCmd.key;"
modifiers="accel"/>
diff --git a/application/palemoon/locales/en-US/chrome/browser/browser.dtd b/application/palemoon/locales/en-US/chrome/browser/browser.dtd
index 2d80c8078..8632b44b4 100644
--- a/application/palemoon/locales/en-US/chrome/browser/browser.dtd
+++ b/application/palemoon/locales/en-US/chrome/browser/browser.dtd
@@ -507,6 +507,8 @@ you can use these alternative items. Otherwise, their values should be empty. -
<!ENTITY closeCmd.key "W">
<!ENTITY closeCmd.accesskey "C">
+<!ENTITY toggleMuteCmd.key "M">
+
<!ENTITY pageStyleMenu.label "Page Style">
<!ENTITY pageStyleMenu.accesskey "y">
<!ENTITY pageStyleNoStyle.label "No Style">