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) 182 B
import hotkeys from 'hotkeys-js'; /** * @deprecated Use isHotkeyPressed instead. Will be removed version 4. */ export function useIsHotkeyPressed() { return hotkeys.isPressed; }