Mailspring/internal_packages/composer/keymaps/composer.cson
Evan Morikawa e639afae1e fix(undo): properly scope composer keymappings for undo/redo
Summary: Properly scopes undo & redo key bindings to the composer

Test Plan: manual

Reviewers: dillon, bengotow

Reviewed By: bengotow

Maniphest Tasks: T3446

Differential Revision: https://phab.nylas.com/D1951
2015-08-28 18:59:00 -04:00

34 lines
1.2 KiB
Text

'.composer-outer-wrap, .composer-outer-wrap input, .composer-outer-wrap
div[contenteditable]':
'cmd-B' : 'composer:show-and-focus-bcc'
'cmd-C' : 'composer:show-and-focus-cc'
'ctrl-B' : 'composer:show-and-focus-bcc'
'ctrl-C' : 'composer:show-and-focus-cc'
'cmd-enter' : 'composer:send-message'
'ctrl-enter' : 'composer:send-message'
'.composer-outer-wrap':
'delete' : 'composer:no-op'
'.composer-outer-wrap, .composer-outer-wrap div[contenteditable]':
'escape' : 'composer:delete-empty-draft'
'.composer-outer-wrap .btn.btn-send':
'enter' : 'composer:send-message'
'tab' : 'composer:focus-to'
'shift-tab' : 'native!'
'body.platform-win32 .composer-outer-wrap *[contenteditable], body.platform-win32 .composer-outer-wrap input':
'ctrl-z': 'composer:undo'
'ctrl-Z': 'composer:redo'
'ctrl-y': 'composer:redo'
'body.platform-linux .composer-outer-wrap *[contenteditable], body.platform-linux .composer-outer-wrap input':
'ctrl-z': 'composer:undo'
'ctrl-Z': 'composer:redo'
'ctrl-y': 'composer:redo'
'body.platform-darwin .composer-outer-wrap *[contenteditable], body.platform-darwin .composer-outer-wrap input':
'cmd-z': 'composer:undo'
'cmd-Z': 'composer:redo'
'cmd-y': 'composer:redo'