Mailspring/dot-nylas/keymap.cson
Evan Morikawa 455b418d6f 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

28 lines
823 B
Plaintext

# 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