-
Robert Knight authored
- `installShortcut` is a function that installs a shortcut key sequence listener on the document body (or other user-specified element) - `useShortcut` is a hook that installs a shortcut when a component is mounted and removes it when the component is unmounted. It can be conditionally disabled by setting the shortcut to `null`, since hooks themselves cannot be called conditionally
39d9fae5