Skip to content

Commit 9cb7b7d

Browse files
muanmarijnh
authored andcommitted
Return keypress when composing
Keypress should not happen during composing (as spec) but it does on Windows for Korean IMEs
1 parent 0e13835 commit 9cb7b7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/input/ContentEditableInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ export default class ContentEditableInput {
355355
}
356356

357357
onKeyPress(e) {
358-
if (e.charCode == 0) return
358+
if (e.charCode == 0 || this.composing) return
359359
e.preventDefault()
360360
if (!this.cm.isReadOnly())
361361
operation(this.cm, applyTextInput)(this.cm, String.fromCharCode(e.charCode == null ? e.keyCode : e.charCode), 0)

0 commit comments

Comments
 (0)