UNPKG

@hookies/key-bindings

Version:

A React hook library for adding keyboard shortcuts

11 lines 384 B
type ShortcutKeys = string[]; interface UseShortcutOptions { preventDefault?: boolean; } /** * `useShortcutExtended` - Detects any keyboard shortcut. * Example: `A + S`, `A + 1 + M`, `X + Z` */ export declare function useShortcutExtended(keys: ShortcutKeys, callback: () => void, options?: UseShortcutOptions): void; export {}; //# sourceMappingURL=useShortcutExtended.d.ts.map