Skip to content
Snippets Groups Projects
Commit e22a4518 authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

[contenteditable input] Don't preventDefault keypress events when charCode==0

Closes #4589
parent 0100ef38
No related branches found
No related tags found
Loading
......@@ -325,6 +325,7 @@ export default class ContentEditableInput {
}
onKeyPress(e) {
if (e.charCode == 0) 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