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:
commit
60b4365a76
1 changed files with 3 additions and 0 deletions
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue