Merge pull request #1840 from subins2000/fix-1839-no-keyevents-on-user-input

Fix #1839: Prevent keypress events on user input elements
This commit is contained in:
Julen Garcia Leunda
2020-07-30 18:31:22 +02:00
committed by GitHub

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') {