Version: 1.x
KeyboardShortcut
Type: interface
Props#
hint#
Type: string
Text that helps the user understand what key to press to use this shortcut.
keys#
Type: int[]
The JS key codes to listen to.
action#
Type: () => void
A callback to call when the key is pressed.