Fix #1839: Prevent keypress events on user input elements

This commit is contained in:
Subin Siby
2020-07-17 18:46:55 +05:30
parent c150d22c97
commit 15cca44bd2

View File

@@ -521,6 +521,9 @@ function onPaste (e) {
}
function onKeydown (e) {
// prevent event fire on user input elements
if (editableHtmlTags.has(e.target.tagName.toLowerCase())) return
const key = e.key
if (key === 'ArrowLeft') {