diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 7a6e477684ce..ae3755ced024 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -688,9 +688,15 @@ "message": "Debug Log", "description": "View menu item to open the debug log (title case)" }, + "helpMenuShowKeyboardShortcuts": { + "message": "Show Keyboard Shortcuts", + "description": + "Item under the help menu, pops up a screen showing the application's keyboard shortcuts" + }, "goToReleaseNotes": { "message": "Go to Release Notes", - "description": "" + "description": + "Item under the help menu, takes you to GitHub page for release notes" }, "goToForums": { "message": "Go to Forums", @@ -1949,5 +1955,188 @@ "message": "(draft)", "description": "Text shown in left pane as preview for conversation with saved a saved draft message" + }, + "Keyboard--navigate-by-section": { + "message": "Navigate by section", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--previous-conversation": { + "message": "Previous conversation", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--next-conversation": { + "message": "Next conversation", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--previous-unread-conversation": { + "message": "Previous unread conversation", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--next-unread-conversation": { + "message": "Next unread conversation", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--preferences": { + "message": "Preferences", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--open-conversation-menu": { + "message": "Open conversation menu", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--archive-conversation": { + "message": "Archive conversation", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--unarchive-conversation": { + "message": "Unarchive conversation", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--search": { + "message": "Search", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--search-in-conversation": { + "message": "Search in conversation", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--focus-composer": { + "message": "Focus composer", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--open-all-media-view": { + "message": "Open All Media view", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--open-emoji-chooser": { + "message": "Open emoji chooser", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--open-sticker-chooser": { + "message": "Open sticker chooser", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--begin-recording-voice-note": { + "message": "Begin recording voice note", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--default-message-action": { + "message": "Default action for selected message", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--view-details-for-selected-message": { + "message": "View selected message details", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--toggle-reply": { + "message": "Toggle reply to selected message", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--save-attachment": { + "message": "Save attachment from selected message", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--delete-message": { + "message": "Delete selected message", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--add-newline": { + "message": "Add newline to message", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--expand-composer": { + "message": "Expand composer", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--send-in-expanded-composer": { + "message": "Send (in expanded composer)", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--attach-file": { + "message": "Attach file", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--remove-draft-link-preview": { + "message": "Remove draft link preview", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--remove-draft-attachments": { + "message": "Remove all draft attachments", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--Key--ctrl": { + "message": "Ctrl", + "description": "Key shown in shortcut combination in shortcuts guide" + }, + "Keyboard--Key--option": { + "message": "Option", + "description": "Key shown in shortcut combination in shortcuts guide" + }, + "Keyboard--Key--alt": { + "message": "Alt", + "description": "Key shown in shortcut combination in shortcuts guide" + }, + "Keyboard--Key--shift": { + "message": "Shift", + "description": "Key shown in shortcut combination in shortcuts guide" + }, + "Keyboard--Key--enter": { + "message": "Enter", + "description": "Key shown in shortcut combination in shortcuts guide" + }, + "Keyboard--header": { + "message": "Keyboard Shortcuts", + "description": "Title header of the keyboard shortcuts guide" + }, + "Keyboard--navigation-header": { + "message": "Navigation", + "description": "Header of the keyboard shortcuts guide - navigation section" + }, + "Keyboard--messages-header": { + "message": "Messages", + "description": "Header of the keyboard shortcuts guide - messages section" + }, + "Keyboard--composer-header": { + "message": "Composer", + "description": "Header of the keyboard shortcuts guide - composer section" + }, + "Keyboard--scroll-to-top": { + "message": "Scroll to top of list", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--scroll-to-bottom": { + "message": "Scroll to bottom of list", + "description": "Shown in the shortcuts guide" + }, + "Keyboard--close-curent-conversation": { + "message": "Close current conversation", + "description": "Shown in the shortcuts guide" + }, + "close-popup": { + "message": "Close Popup", + "description": "Used as alt text for any button closing a popup" + }, + "add-image-attachment": { + "message": "Add image attachment", + "description": + "Used in draft attachment list for the big 'add new attachment' button" + }, + "remove-attachment": { + "message": "Remove attachment", + "description": + "Used in draft attachment list to remove an individual attachment" + }, + "backToInbox": { + "message": "Back to inbox", + "description": "Used as alt-text of button on archived conversations screen" + }, + "conversationArchived": { + "message": "Conversation archived", + "description": "A toast that shows up when user archives a conversation" + }, + "conversationReturnedToInbox": { + "message": "Conversation returned to inbox", + "description": + "A toast that shows up when the user unarchives a conversation" } } diff --git a/app/menu.js b/app/menu.js index 0e745beb20da..cfaadf7cf8d2 100644 --- a/app/menu.js +++ b/app/menu.js @@ -17,6 +17,7 @@ exports.createTemplate = (options, messages) => { setupWithImport, showAbout, showDebugLog, + showKeyboardShortcuts, showSettings, } = options; @@ -131,12 +132,17 @@ exports.createTemplate = (options, messages) => { role: 'help', submenu: [ { - label: messages.goToReleaseNotes.message, - click: openReleaseNotes, + label: messages.helpMenuShowKeyboardShortcuts.message, + accelerator: 'CmdOrCtrl+/', + click: showKeyboardShortcuts, }, { type: 'separator', }, + { + label: messages.goToReleaseNotes.message, + click: openReleaseNotes, + }, { label: messages.goToForums.message, click: openForums, diff --git a/background.html b/background.html index c0da6a5288ac..2f213bbfe4cf 100644 --- a/background.html +++ b/background.html @@ -111,19 +111,19 @@ @@ -155,13 +155,13 @@