mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +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
27 lines
823 B
Text
27 lines
823 B
Text
# Your keymap
|
|
#
|
|
# N1 keymaps work in conjunction with the {KeyCommandsRegion} React
|
|
# component.
|
|
#
|
|
# A key, or sequence of keys is first mapped to a "command".
|
|
#
|
|
# The "command" is then mapped to a callback function within your React
|
|
# component or store.
|
|
#
|
|
# The keyboard -> command mapping is defined in this `.cson` file. Each
|
|
# mapping is scoped under the component that it applies to by matching the
|
|
# root-level CSS class of that component.
|
|
#
|
|
# Any global, top-level mappings are scoped under the `body` selector.
|
|
#
|
|
# For example:
|
|
#
|
|
# 'body':
|
|
# 'ctrl-c': 'application:new-message'
|
|
#
|
|
# '.my-custom-package':
|
|
# 'ctrl-p': 'myPackage:customAction'
|
|
#
|
|
# This file uses CoffeeScript Object Notation (CSON).
|
|
# If you are unfamiliar with CSON, you can read more about it here:
|
|
# https://github.com/bevry/cson#what-is-cson
|