diff --git a/app/components/HeroOverprint.vue b/app/components/HeroOverprint.vue index f325435..5e0c7e7 100644 --- a/app/components/HeroOverprint.vue +++ b/app/components/HeroOverprint.vue @@ -210,6 +210,14 @@ async function open(event: MouseEvent) { event.preventDefault() await morphTo(shown.value.key, 'hero') } + +async function openFromField(event: KeyboardEvent) { + // The Enter that confirms an IME candidate belongs to the composition. The + // next one, once composition has ended, is the reader asking to leave. + if (composing.value || event.isComposing) return + event.preventDefault() + await morphTo(shown.value.key, 'hero') +}