mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-29 20:04:59 +08:00
fix(keymaps): Display composer keymaps, fix Apple Mail
This commit is contained in:
parent
38e8e0171b
commit
e0339e9e18
3 changed files with 12 additions and 3 deletions
|
@ -31,6 +31,15 @@ DisplayedKeybindings = [
|
|||
['application:remove-and-next', 'Remove from view and next'],
|
||||
]
|
||||
},
|
||||
{
|
||||
title: 'Composer',
|
||||
items: [
|
||||
['composer:send-message', 'Send Message'],
|
||||
['composer:focus-to', 'Focus the To field'],
|
||||
['composer:show-and-focus-cc', 'Focus the Cc field'],
|
||||
['composer:show-and-focus-bcc', 'Focus the Bcc field']
|
||||
]
|
||||
},
|
||||
{
|
||||
title: 'Navigation',
|
||||
items: [
|
||||
|
@ -94,7 +103,7 @@ class PreferencesKeymaps extends React.Component
|
|||
bindings = {}
|
||||
for section in DisplayedKeybindings
|
||||
for [command, label] in section.items
|
||||
bindings[command] = NylasEnv.keymaps.findKeyBindings(command: command, target: document.body) || []
|
||||
bindings[command] = NylasEnv.keymaps.findKeyBindings(command: command) || []
|
||||
bindings
|
||||
|
||||
render: =>
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
'cmdctrl-R' : 'application:reply-all'
|
||||
'cmdctrl-F' : 'application:forward'
|
||||
'cmdctrl-alt-f': 'application:focus-search'
|
||||
'cmdctrl-D': 'application:send-message'
|
||||
'cmdctrl-shift-D': 'composer:send-message'
|
||||
'cmdctrl-V': 'application:change-category'
|
||||
'cmdctrl-e' : 'application:archive-item'
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
'cmdctrl-shift-v': 'application:change-category'
|
||||
'cmdctrl-d': 'application:delete-item'
|
||||
'alt-backspace': 'core:undo'
|
||||
'alt-s': 'application:send-message'
|
||||
'alt-s': 'composer:send-message'
|
||||
'cmdctrl-r': 'application:reply'
|
||||
'cmdctrl-shift-r': 'application:reply-all'
|
||||
'cmdctrl-n' : 'application:new-message'
|
||||
|
|
Loading…
Reference in a new issue