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
|
||||
# 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
|
||||
# Outlook keymappings
|
||||
# There are additional mappings in <platform>.cson files that bind
|
||||
# menu items. In the future, we should break these into files like:
|
||||
# darwin-gmail.cson, darwin-macmail.cson, win32-gmail.cson...
|
||||
|
||||
'body':
|
||||
'c' : 'application:new-message' # Gmail
|
||||
'cmd-n' : 'application:new-message' # Mac mail
|
||||
'ctrl-n': 'application:new-message' # Outlook
|
||||
|
||||
'k' : 'application:previous-message' # Gmail
|
||||
'up' : 'application:previous-message' # Mac mail
|
||||
|
||||
'j' : 'application:next-message' # Gmail
|
||||
'down' : 'application:next-message' # Mac mail
|
||||
|
||||
']' : 'application:archive-and-previous' # Gmail
|
||||
|
||||
'[' : 'application:archive-thread' # Gmail
|
||||
'e' : 'application:archive-thread' # Gmail
|
||||
'delete' : 'application:archive-thread' # Mac mail
|
||||
'backspace': 'application:archive-thread' # Outlook
|
||||
|
||||
'r' : 'application:reply' # Gmail
|
||||
'cmd-r' : 'application:reply' # Mac mail
|
||||
'ctrl-r': 'application:reply' # Outlook
|
||||
|
||||
'a' : 'application:reply-all' # Gmail
|
||||
'cmd-R' : 'application:reply-all' # Mac mail
|
||||
'ctrl-R': 'application:reply-all' # Outlook
|
||||
|
||||
'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
|
||||
'left': 'core:move-left'
|
||||
|
|
|
@ -1,8 +1,16 @@
|
|||
# Note: For a menu item to have a keyboard equiavalent, it needs
|
||||
# to be listed in this file.
|
||||
|
||||
# Mac application keys
|
||||
'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-h': 'application:hide'
|
||||
'cmd-1': 'application:show-main-window'
|
||||
|
|
|
@ -1,8 +1,14 @@
|
|||
# Note: For a menu item to have a keyboard equiavalent, it needs
|
||||
# to be listed in this file.
|
||||
|
||||
# Linux application keys
|
||||
# Linux email-specific menu items
|
||||
'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-alt-s': 'application:run-all-specs'
|
||||
|
||||
|
|
|
@ -1,8 +1,14 @@
|
|||
# Note: For a menu item to have a keyboard equiavalent, it needs
|
||||
# to be listed in this file.
|
||||
|
||||
# Windows application keys
|
||||
'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-alt-s': 'application:run-all-specs'
|
||||
|
||||
|
|
Loading…
Reference in a new issue