Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Commit b7bf9d5

Browse files
committed
Handle synthetic events even during composition
1 parent eb00431 commit b7bf9d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/input.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export class InputState {
162162
}
163163

164164
ignoreDuringComposition(event: Event): boolean {
165-
if (!/^key/.test(event.type)) return false
165+
if (!/^key/.test(event.type) || (event as any).synthetic) return false
166166
if (this.composing > 0) return true
167167
// See https://www.stum.de/2016/06/24/handling-ime-events-in-javascript/.
168168
// On some input method editors (IMEs), the Enter key is used to

0 commit comments

Comments
 (0)