@quantabit/hotkey-sdk
v1.0.2
Published
Keyboard shortcut and hotkey management
Maintainers
Readme
@quantabit/hotkey-sdk
Keyboard shortcut and hotkey management
Features
- useHotkey — Single shortcut:
useHotkey('mod+s', save) - useHotkeys — Batch:
useHotkeys([{combo:'mod+k',handler:search}]) - HotkeyDisplay — Render
⌘S/Ctrl+S(auto Mac/Win) - formatHotkey — Format combo string for display
- Auto-ignores input/textarea focus
import { useHotkey, HotkeyDisplay } from '@quantabit/hotkey-sdk';
useHotkey('mod+s', () => save(), { preventDefault: true });
<HotkeyDisplay combo="mod+k" /> // renders ⌘K on MacLicense
MIT
🌐 Brand & Links
- Official Mainnet: QuantaBit Chain
- Developer Platform: Developer Platform
- Open Platform: Open Platform
- Payment Platform: Pay Platform
- Feedback: Feedback
