useKeyboard

Binds global keyboard shortcuts and cleans them up on unmount. Single-key shortcuts stay quiet while the user types in a field; ctrl, alt and meta combos and Escape always fire.

Install: pnpm add-composable useKeyboard

Global shortcut

Press Ctrl+K (or Meta+K) to trigger an action.

API