mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 10:11:25 +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
13 lines
510 B
Text
13 lines
510 B
Text
# Note: Only put keymaps in here that apply to Mac ONLY
|
|
#
|
|
# Most cross-platform issues can be resolved by using the special N1
|
|
# `cmdctrl` extension before you keymap. This will automatically default
|
|
# to using the `cmd` key on Mac and `ctrl` key on Windows.
|
|
|
|
'body':
|
|
'cmd-m': 'application:minimize'
|
|
'cmd-h': 'application:hide'
|
|
'cmd-1': 'application:show-main-window'
|
|
'cmd-alt-h': 'application:hide-other-applications'
|
|
'cmd-ctrl-f': 'window:toggle-full-screen'
|
|
'alt-cmd-ctrl-m': 'application:zoom'
|