Mailspring/internal_packages/composer/keymaps/composer.cson
Evan Morikawa 37e3fe0f45 feat(keymap): add new <KeymapHandlers />
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
2015-11-06 11:47:06 -08:00

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'