mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-03 19:43:04 +08:00
fix(keymappings): fix platform keymappings
This commit is contained in:
parent
3c35ef488b
commit
a347893594
4 changed files with 36 additions and 34 deletions
|
@ -1,42 +1,24 @@
|
||||||
# Email-specific core key-mappings
|
# Email-specific core key-mappings
|
||||||
# All platforms are put here to consolidate custom actions and to prevent
|
|
||||||
# duplication in 3 files.
|
|
||||||
#
|
#
|
||||||
# TODO let the user pick whether they want to use Gmail, Mac Mail, or
|
# There are additional mappings in <platform>.cson files that bind
|
||||||
# Outlook keymappings
|
# menu items. In the future, we should break these into files like:
|
||||||
|
# darwin-gmail.cson, darwin-macmail.cson, win32-gmail.cson...
|
||||||
|
|
||||||
'body':
|
'body':
|
||||||
'c' : 'application:new-message' # Gmail
|
'c' : 'application:new-message' # Gmail
|
||||||
'cmd-n' : 'application:new-message' # Mac mail
|
'k' : 'application:previous-message' # Gmail
|
||||||
'ctrl-n': 'application:new-message' # Outlook
|
'up' : 'application:previous-message' # Mac mail
|
||||||
|
'j' : 'application:next-message' # Gmail
|
||||||
'k' : 'application:previous-message' # Gmail
|
'down' : 'application:next-message' # Mac mail
|
||||||
'up': 'application:previous-message' # Mac mail
|
|
||||||
|
|
||||||
'j' : 'application:next-message' # Gmail
|
|
||||||
'down': 'application:next-message' # Mac mail
|
|
||||||
|
|
||||||
']' : 'application:archive-and-previous' # Gmail
|
']' : 'application:archive-and-previous' # Gmail
|
||||||
|
|
||||||
'[' : 'application:archive-thread' # Gmail
|
'[' : 'application:archive-thread' # Gmail
|
||||||
'e' : 'application:archive-thread' # Gmail
|
'e' : 'application:archive-thread' # Gmail
|
||||||
'delete' : 'application:archive-thread' # Mac mail
|
'delete' : 'application:archive-thread' # Mac mail
|
||||||
'backspace': 'application:archive-thread' # Outlook
|
'backspace': 'application:archive-thread' # Outlook
|
||||||
|
|
||||||
'r' : 'application:reply' # Gmail
|
'r' : 'application:reply' # Gmail
|
||||||
'cmd-r' : 'application:reply' # Mac mail
|
|
||||||
'ctrl-r': 'application:reply' # Outlook
|
|
||||||
|
|
||||||
'a' : 'application:reply-all' # Gmail
|
'a' : 'application:reply-all' # Gmail
|
||||||
'cmd-R' : 'application:reply-all' # Mac mail
|
|
||||||
'ctrl-R': 'application:reply-all' # Outlook
|
|
||||||
|
|
||||||
'f' : 'application:forward' # Gmail
|
'f' : 'application:forward' # Gmail
|
||||||
'cmd-F' : 'application:forward' # Mac mail
|
|
||||||
'ctrl-F': 'application:forward' # Outlook
|
|
||||||
|
|
||||||
'cmd-alt-f': 'application:focus-search' # Mac mail
|
|
||||||
|
|
||||||
'cmd-D': 'application:send-message' # Mac mail
|
|
||||||
|
|
||||||
# Default cross-platform core behaviors
|
# Default cross-platform core behaviors
|
||||||
'left': 'core:move-left'
|
'left': 'core:move-left'
|
||||||
|
|
|
@ -1,8 +1,16 @@
|
||||||
# Note: For a menu item to have a keyboard equiavalent, it needs
|
# Note: For a menu item to have a keyboard equiavalent, it needs
|
||||||
# to be listed in this file.
|
# to be listed in this file.
|
||||||
|
|
||||||
# Mac application keys
|
|
||||||
'body':
|
'body':
|
||||||
|
# Mac email-specific menu items
|
||||||
|
'cmd-n' : 'application:new-message' # Mac mail
|
||||||
|
'cmd-r' : 'application:reply' # Mac mail
|
||||||
|
'cmd-R' : 'application:reply-all' # Mac mail
|
||||||
|
'cmd-F' : 'application:forward' # Mac mail
|
||||||
|
'cmd-alt-f': 'application:focus-search' # Mac mail
|
||||||
|
'cmd-D': 'application:send-message' # Mac mail
|
||||||
|
|
||||||
|
# Mac application keys
|
||||||
'cmd-q': 'application:quit'
|
'cmd-q': 'application:quit'
|
||||||
'cmd-h': 'application:hide'
|
'cmd-h': 'application:hide'
|
||||||
'cmd-1': 'application:show-main-window'
|
'cmd-1': 'application:show-main-window'
|
||||||
|
@ -11,7 +19,7 @@
|
||||||
'alt-cmd-ctrl-m': 'application:zoom'
|
'alt-cmd-ctrl-m': 'application:zoom'
|
||||||
'cmd-alt-ctrl-s': 'application:run-all-specs'
|
'cmd-alt-ctrl-s': 'application:run-all-specs'
|
||||||
|
|
||||||
# Mac core keys
|
# Mac core keys
|
||||||
'cmd-z': 'core:undo'
|
'cmd-z': 'core:undo'
|
||||||
'cmd-Z': 'core:redo'
|
'cmd-Z': 'core:redo'
|
||||||
'cmd-y': 'core:redo'
|
'cmd-y': 'core:redo'
|
||||||
|
@ -20,7 +28,7 @@
|
||||||
'cmd-a': 'core:select-all'
|
'cmd-a': 'core:select-all'
|
||||||
'cmd-v': 'core:paste'
|
'cmd-v': 'core:paste'
|
||||||
|
|
||||||
# Mac window keys
|
# Mac window keys
|
||||||
'cmd-w': 'window:close'
|
'cmd-w': 'window:close'
|
||||||
'cmd-=': 'window:increase-font-size'
|
'cmd-=': 'window:increase-font-size'
|
||||||
'cmd-+': 'window:increase-font-size'
|
'cmd-+': 'window:increase-font-size'
|
||||||
|
|
|
@ -1,12 +1,18 @@
|
||||||
# Note: For a menu item to have a keyboard equiavalent, it needs
|
# Note: For a menu item to have a keyboard equiavalent, it needs
|
||||||
# to be listed in this file.
|
# to be listed in this file.
|
||||||
|
|
||||||
# Linux application keys
|
# Linux email-specific menu items
|
||||||
'body':
|
'body':
|
||||||
|
'ctrl-n': 'application:new-message' # Outlook
|
||||||
|
'ctrl-r': 'application:reply' # Outlook
|
||||||
|
'ctrl-R': 'application:reply-all' # Outlook
|
||||||
|
'ctrl-F': 'application:forward' # Outlook
|
||||||
|
|
||||||
|
# Linux application keys
|
||||||
'ctrl-q': 'application:quit'
|
'ctrl-q': 'application:quit'
|
||||||
'ctrl-alt-s': 'application:run-all-specs'
|
'ctrl-alt-s': 'application:run-all-specs'
|
||||||
|
|
||||||
# Linux core keys
|
# Linux core keys
|
||||||
'ctrl-z': 'core:undo'
|
'ctrl-z': 'core:undo'
|
||||||
'ctrl-Z': 'core:redo'
|
'ctrl-Z': 'core:redo'
|
||||||
'ctrl-y': 'core:redo'
|
'ctrl-y': 'core:redo'
|
||||||
|
@ -17,7 +23,7 @@
|
||||||
'ctrl-insert': 'core:copy'
|
'ctrl-insert': 'core:copy'
|
||||||
'shift-insert': 'core:paste'
|
'shift-insert': 'core:paste'
|
||||||
|
|
||||||
# Linux window keys
|
# Linux window keys
|
||||||
'ctrl-w': 'core:close'
|
'ctrl-w': 'core:close'
|
||||||
'ctrl-=': 'window:increase-font-size'
|
'ctrl-=': 'window:increase-font-size'
|
||||||
'ctrl-+': 'window:increase-font-size'
|
'ctrl-+': 'window:increase-font-size'
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
# Note: For a menu item to have a keyboard equiavalent, it needs
|
# Note: For a menu item to have a keyboard equiavalent, it needs
|
||||||
# to be listed in this file.
|
# to be listed in this file.
|
||||||
|
|
||||||
# Windows application keys
|
|
||||||
'body':
|
'body':
|
||||||
|
# Windows email-specific menu items
|
||||||
|
'ctrl-n': 'application:new-message' # Outlook
|
||||||
|
'ctrl-r': 'application:reply' # Outlook
|
||||||
|
'ctrl-R': 'application:reply-all' # Outlook
|
||||||
|
'ctrl-F': 'application:forward' # Outlook
|
||||||
|
|
||||||
|
# Windows application keys
|
||||||
'ctrl-q': 'application:quit'
|
'ctrl-q': 'application:quit'
|
||||||
'ctrl-alt-s': 'application:run-all-specs'
|
'ctrl-alt-s': 'application:run-all-specs'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue