Environment
Vuetify Version: 3.11.4
Vue Version: 3.5.25
OS: Ubuntu undefined (current)
Expected Behavior
Hotkeys should work consistently across keyboard layouts.
Solutions:
-
Always use KeyboardEvent.code instead KeyboardEvent.key for letter keys.
-
Allow to choose the matching strategy by using code as keys:
useHotkey('KeyB', callback) β matches by code, with 'B, or 'Π' or any key with code 'KeyB', works in any layout
useHotkey('B', callback) β matches by key, only when the typed character is 'B', not 'Π') - current behavior
-
Add keyCode option in HotkeyOptions:
useHotkey('B', callback, { keyCode: true })
Actual Behavior
Latin letter hotkeys ignored in non-Latin layouts. For example Ctrl + B in playground link from documentation ignored in Cyrillic layout .
Reproduction Link
https://play.vuetifyjs.com/#...