Package Exports
- @wordpress/keyboard-shortcuts
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@wordpress/keyboard-shortcuts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Keyboard Shortcuts
Keyboard shortcuts is a generic package that allows registering and modifying shortcuts.
Installation
Install the module
npm install @wordpress/keyboard-shortcuts --saveThis package assumes that your code will run in an ES2015+ environment. If you're using an environment that has limited or no support for ES2015+ such as IE browsers then using core-js will add polyfills for these methods.
API
# store
Store definition for the keyboard shortcuts namespace.
Related
Type
Object
# useShortcut
Attach a keyboard shortcut handler.
Parameters
- name
string: Shortcut name. - callback
Function: Shortcut callback. - options
Object: Shortcut options.
