IME composition
VueNuxt
open
Nuxt UI defineShortcuts fire while typing with a Japanese IME
defineShortcuts fires global shortcuts while typing with an IME
nuxt/ui · nuxt/ui
Symptom
Single-key shortcuts registered with defineShortcuts fire while composing text, so romaji keystrokes trigger app shortcuts mid-composition.
Minimal repro
1. Register a single-key shortcut (e.g. 'g'). 2. In an input, compose Japanese text whose romaji includes that key. 3. The shortcut fires during composition.
Fix
Ignore key events when e.isComposing (or keyCode 229) before dispatching shortcuts.