{"library":"react-shortcuts","type":"library","category":null,"description":"React Shortcuts (version 2.1.0) is a library designed to manage keyboard shortcuts declaratively within React components. It provides a structured way to define application-wide and component-specific keymaps, which can include platform-specific variations and sequences. The library uses `mousetrap` (Combokeys) under the hood for robust key detection. Key differentiators include centralizing shortcut definitions and abstracting away boilerplate `addEventListener`/`removeEventListener` logic. However, the package is effectively abandoned, with its last release over 7 years ago and no recent development activity. It relies heavily on React's now-deprecated Legacy Context API (`getChildContext`), making it incompatible with modern React versions (17 and above).","language":"javascript","status":"abandoned","version":"2.1.0","tags":["javascript","react","react-component","keyboard","shortcuts","mousetrap"],"install":[{"cmd":"npm install react-shortcuts","imports":["import { ShortcutManager } from 'react-shortcuts'","import { Shortcuts } from 'react-shortcuts'"]},{"cmd":"yarn add react-shortcuts","imports":[]},{"cmd":"pnpm add react-shortcuts","imports":[]}],"homepage":"https://www.npmjs.com/package/react-shortcuts","github":"https://github.com/avocode/react-shortcuts","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/react-shortcuts","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/react-shortcuts/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Mon Jul 20","install_tag":null}}