ignore input-element
This commit is contained in:
parent
3c1b33add3
commit
bbc8ff515e
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,10 @@ const invokeEvent = (action) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
window.addEventListener("keydown", (e) => {
|
window.addEventListener("keydown", (e) => {
|
||||||
|
if (e.target instanceof HTMLInputElement) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let request = {
|
let request = {
|
||||||
type: 'event.keydown',
|
type: 'event.keydown',
|
||||||
code: e.keyCode,
|
code: e.keyCode,
|
||||||
|
|
Reference in a new issue