mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-27 10:33:56 +08:00
a46bad4eb7
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
69 lines
2.2 KiB
JSON
69 lines
2.2 KiB
JSON
{
|
|
"core:undo": "mod+z",
|
|
"core:redo": "mod+y",
|
|
"core:cut": "mod+x",
|
|
"core:copy": "mod+c",
|
|
"core:paste": "mod+v",
|
|
"core:paste-and-match-style": "mod+shift+v",
|
|
"core:select-all": "mod+a",
|
|
"core:previous-item": "up",
|
|
"core:next-item": "down",
|
|
"core:move-left": "left",
|
|
"core:move-right": "right",
|
|
"core:select-up": "shift+up",
|
|
"core:select-down": "shift+down",
|
|
"core:select-left": "shift+left",
|
|
"core:select-right": "shift+right",
|
|
|
|
"application:open-preferences": "mod+,",
|
|
"application:quit": "mod+q",
|
|
|
|
"window:close": "mod+w",
|
|
|
|
"core:print-thread": "mod+p",
|
|
"core:focus-item": "enter",
|
|
"core:remove-from-view": "backspace",
|
|
"core:pop-sheet": "escape",
|
|
|
|
"core:messages-page-up": "pageup",
|
|
"core:messages-page-down": "pagedown",
|
|
"core:list-page-up": "shift+pageup",
|
|
"core:list-page-down": "shift+pagedown",
|
|
|
|
"window:select-account-0": "mod+1",
|
|
"window:select-account-1": "mod+2",
|
|
"window:select-account-2": "mod+3",
|
|
"window:select-account-3": "mod+4",
|
|
"window:select-account-4": "mod+5",
|
|
"window:select-account-5": "mod+6",
|
|
"window:select-account-6": "mod+7",
|
|
"window:select-account-7": "mod+8",
|
|
"window:select-account-8": "mod+9",
|
|
|
|
"core:find-in-thread": "mod+f",
|
|
"core:find-in-thread-next": "mod+g",
|
|
"core:find-in-thread-previous": "mod+shift+g",
|
|
|
|
"contenteditable:set-right-to-left": "mod+,",
|
|
"contenteditable:underline": "mod+u",
|
|
"contenteditable:bold": "mod+b",
|
|
"contenteditable:italic": "mod+i",
|
|
"contenteditable:insert-link": "mod+k",
|
|
"contenteditable:numbered-list": "mod+&",
|
|
"contenteditable:bulleted-list": "mod+*",
|
|
"contenteditable:quote": "mod+(",
|
|
"contenteditable:outdent": "mod+[",
|
|
"contenteditable:indent": "mod+]",
|
|
"contenteditable:align-left": "mod+L",
|
|
"contenteditable:align-center": "mod+E",
|
|
"contenteditable:align-right": "mod+R",
|
|
"contenteditable:set-left-to-right": "mod+.",
|
|
"contenteditable:remove-formatting": "mod+\\",
|
|
"contenteditable:previous-font": "mod+%",
|
|
"contenteditable:next-font": "mod+^",
|
|
"contenteditable:increase-text-size": "mod++",
|
|
"contenteditable:decrease-text-size": "mod+-",
|
|
"contenteditable:previous-selection": "mod+;",
|
|
"contenteditable:next-selection": "mod+\"",
|
|
"contenteditable:open-spelling-suggestions": "mod+m"
|
|
}
|