mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
e639afae1e
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
34 lines
1.2 KiB
Text
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'
|