mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 12:40:08 +08:00
37e3fe0f45
Summary: Refactor keymaps to wrap components with a <KeymapHandlers /> component. This more Reactful way of declaring keyback handlers prevents us from needing to subscribe to `atom.commands` Test Plan: new tests Reviewers: bengotow, juan Reviewed By: bengotow Differential Revision: https://phab.nylas.com/D2226
16 lines
593 B
Text
16 lines
593 B
Text
'.composer-outer-wrap, .composer-outer-wrap input, .composer-outer-wrap
|
|
div[contenteditable]':
|
|
'cmdctrl-T' : 'composer:focus-to'
|
|
'cmdctrl-C' : 'composer:show-and-focus-cc'
|
|
'cmdctrl-B' : 'composer:show-and-focus-bcc'
|
|
'cmdctrl-F' : 'composer:show-and-focus-from'
|
|
'cmdctrl-enter': 'composer:send-message'
|
|
'cmdctrl-z' : 'composer:undo'
|
|
'cmdctrl-Z' : 'composer:redo'
|
|
'cmdctrl-y' : 'composer:redo'
|
|
|
|
'.composer-outer-wrap':
|
|
'delete': 'composer:no-op'
|
|
|
|
'.composer-outer-wrap, .composer-outer-wrap div[contenteditable]':
|
|
'escape': 'composer:delete-empty-draft'
|