Mailspring/keymaps/templates/Apple Mail.json
Ben Gotow a46bad4eb7 refactor(menus): Major prune of keymaps/commands, real conditional menus
Summary:
Keymaps & menus CSON => JSON, remove AtomKeymaps, CommandRegistry use of CSS selectors, use Mousetrap instead

Important Notes:

- The `application:` prefix is reserved for commands which are handled in the application process. Don't use it for other things. You will not receive the events in the window.

- Maintaining dynamic menus seems to come with quite an overhead, because Electron updates the entire menu every time. In the future, we'll need https://github.com/electron/electron/issues/528 to really make things nice. I will be tracking this upstream.

- The format for keyboard shortcuts has changed. `cmd-X` is now `command+shift+x`

Test Plan: Run tests

Reviewers: juan, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D2917
2016-04-24 12:16:25 -05:00

25 lines
789 B
JSON

{
"application:new-message": "mod+n",
"navigation:go-to-inbox": "command+ctrl+1",
"navigation:go-to-starred": "command+ctrl+2",
"navigation:go-to-sent": "command+ctrl+3",
"navigation:go-to-drafts": "command+ctrl+4",
"navigation:go-to-all": "command+ctrl+5",
"navigation:go-to-contacts": "command+ctrl+6",
"navigation:go-to-tasks": "command+ctrl+7",
"navigation:go-to-label": "command+ctrl+8",
"multiselect-list:select-all": "command+a",
"core:reply": "mod+r",
"core:reply-all": "mod+shift+r",
"core:forward": "mod+shift+f",
"core:report-as-spam": "mod+shift+j",
"core:mark-as-unread": "mod+shift+u",
"core:star-item": "mod+shift+l",
"core:focus-search": "mod+alt+f",
"core:archive-item": "command+ctrl+a",
"composer:send-message": "mod+shift+d"
}