Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 456 Bytes

File metadata and controls

11 lines (8 loc) · 456 Bytes
@tanstack/hotkeys minor

feat: Add matchBy option for physical key (event.code) matching

Added a new matchBy option to HotkeyOptions that allows matching hotkeys by physical key position (event.code) instead of the default layout-aware matching (event.key). This enables hotkeys to work correctly when a non-Latin IME is active and event.key produces non-Latin characters.

useHotkey('A', callback, { matchBy: 'code' })