UNPKG

react-hotkeys-hook

Version:

React hook for using keyboard shortcuts in components. This is a hook version for the [hotkeys] package.

8 lines (7 loc) 287 B
import { useIsHotkeyPressed } from './useIsHotkeyPressed'; import { useHotkeys, Options } from './useHotkeys'; declare const isHotkeyPressed: { (keyCode: number): boolean; (keyCode: string): boolean; }; export { useHotkeys, useIsHotkeyPressed, isHotkeyPressed, Options };