UNPKG

react-hotkeys-hook

Version:

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

7 lines (5 loc) 258 B
import { useIsHotkeyPressed } from './useIsHotkeyPressed'; import { useHotkeys, Options } from './useHotkeys'; import hotkeys from 'hotkeys-js'; const isHotkeyPressed = hotkeys.isPressed; export { useHotkeys, useIsHotkeyPressed, isHotkeyPressed, Options };