Skip to content
Snippets Groups Projects
Commit 9cb7b7d5 authored by Mu-An ✌️ Chiou's avatar Mu-An ✌️ Chiou Committed by Marijn Haverbeke
Browse files

Return keypress when composing

Keypress should not happen during composing (as spec) but it does on Windows for Korean IMEs
parent 0e138353
No related branches found
No related tags found
No related merge requests found
......@@ -355,7 +355,7 @@ export default class ContentEditableInput {
}
onKeyPress(e) {
if (e.charCode == 0) return
if (e.charCode == 0 || this.composing) return
e.preventDefault()
if (!this.cm.isReadOnly())
operation(this.cm, applyTextInput)(this.cm, String.fromCharCode(e.charCode == null ? e.keyCode : e.charCode), 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment