Some keyboard events (dead keys, modifier-only presses) have e.key as undefined. Similarly, malformed shortcut definitions may lack a key. Added early-return guards to prevent TypeError. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| index.ts | ||
| use-keyboard-shortcuts.ts | ||