diff options
Diffstat (limited to '')
-rw-r--r-- | comm/suite/mailnews/content/mailKeysOverlay.xul | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/comm/suite/mailnews/content/mailKeysOverlay.xul b/comm/suite/mailnews/content/mailKeysOverlay.xul new file mode 100644 index 0000000000..e89cee3968 --- /dev/null +++ b/comm/suite/mailnews/content/mailKeysOverlay.xul @@ -0,0 +1,64 @@ +<?xml version="1.0"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<!DOCTYPE overlay SYSTEM "chrome://messenger/locale/mailKeysOverlay.dtd"> + +<overlay id="mailKeysOverlay" + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> + + <keyset id="mailKeys"> + <key id="key_delete"/> + <key id="key_delete2"/> <!-- secondary delete key --> +#ifdef XP_MACOSX + <!-- not all Mac keyboards have a VK_DELETE key, so we use VK_BACK as + the primary and provide VK_DELETE as a secondary key definition --> + <key id="key_shiftDelete" keycode="VK_BACK" + modifiers="shift" command="cmd_shiftDelete"/> + <key id="key_shiftDelete2" keycode="VK_DELETE" + modifiers="shift" command="cmd_shiftDelete"/> +#else + <key id="key_shiftDelete" keycode="VK_DELETE" + modifiers="shift" command="cmd_shiftDelete"/> +#endif + <key id="key_selectAll"/> + + <key id="key_markAsRead" + key="&markAsReadCmd.key;" + oncommand="goDoCommand('cmd_markAsRead');"/> + <key id="key_markAsUnread" + key="&markAsUnreadCmd2.key;" + oncommand="goDoCommand('cmd_markAsUnread');"/> + <key id="key_toggleFlagged" key="&markFlaggedCmd.key;" + oncommand="goDoCommand('cmd_markAsFlagged');"/> + <key id="key_openMessage" key="&openMessageWindowCmd.key;" + modifiers="accel" oncommand="goDoCommand('cmd_openMessage');"/> + + <!-- Tag Keys --> + <!-- Includes both shifted and not, for Azerty and other layouts where the + numeric keys are shifted. --> + <key id="key_tag0" key="&tagCmd0.key;" modifiers="shift any" + oncommand="RemoveAllMessageTags();"/> + <key id="key_tag1" key="&tagCmd1.key;" modifiers="shift any" + oncommand="ToggleMessageTagKey(1);"/> + <key id="key_tag2" key="&tagCmd2.key;" modifiers="shift any" + oncommand="ToggleMessageTagKey(2);"/> + <key id="key_tag3" key="&tagCmd3.key;" modifiers="shift any" + oncommand="ToggleMessageTagKey(3);"/> + <key id="key_tag4" key="&tagCmd4.key;" modifiers="shift any" + oncommand="ToggleMessageTagKey(4);"/> + <key id="key_tag5" key="&tagCmd5.key;" modifiers="shift any" + oncommand="ToggleMessageTagKey(5);"/> + <key id="key_tag6" key="&tagCmd6.key;" modifiers="shift any" + oncommand="ToggleMessageTagKey(6);"/> + <key id="key_tag7" key="&tagCmd7.key;" modifiers="shift any" + oncommand="ToggleMessageTagKey(7);"/> + <key id="key_tag8" key="&tagCmd8.key;" modifiers="shift any" + oncommand="ToggleMessageTagKey(8);"/> + <key id="key_tag9" key="&tagCmd9.key;" modifiers="shift any" + oncommand="ToggleMessageTagKey(9);"/> + </keyset> + +</overlay> + |