{"repo":"JohannesKlauss/react-hotkeys-hook","free":true,"listed":false,"github":"https://github.com/JohannesKlauss/react-hotkeys-hook","clone":"git clone https://github.com/JohannesKlauss/react-hotkeys-hook.git","description":"React hook for using keyboard shortcuts in components.","language":"TypeScript","stars":3503,"topics":["react","hooks","hook","react-hooks","javascript","typescript","hotkeys","hotkey"],"license":"MIT","category":"ui-components","readme_excerpt":"useHotkeys(keys, callback) A React hook for using keyboard shortcuts in components in a declarative way. Quick Start Scopes Scopes allow you to group hotkeys together. You can use scopes to prevent hotkeys from colliding with each other. Changing a scope's active state You can change the active state of a scope using the disableScope , enableScope and toggleScope functions returned by the useHotkeysContext() hook. Note that you have to have your app wrapped in a component. Focus trap This will only trigger the hotkey if the component is focused. Documentation & Live Examples Quick Start Documentation API API useHotkeys(keys, callback) Parameter Type Required? Default value Description --------------- --------------------------------------------------------- ----------- --------------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------","default_branch":null,"files":null,"tree":[],"storefront":"/r/JohannesKlauss","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/JohannesKlauss/react-hotkeys-hook/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}