ignore keypress for another elements
This commit is contained in:
parent
c5aaaa948f
commit
71c271cdf0
1 changed files with 3 additions and 1 deletions
|
@ -51,7 +51,9 @@ const startFollows = (newTab) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
window.addEventListener('keypress', (e) => {
|
window.addEventListener('keypress', (e) => {
|
||||||
if (e.target instanceof HTMLInputElement) {
|
if (e.target instanceof HTMLInputElement ||
|
||||||
|
e.target instanceof HTMLTextAreaElement ||
|
||||||
|
e.target instanceof HTMLSelectElement) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
browser.runtime.sendMessage({
|
browser.runtime.sendMessage({
|
||||||
|
|
Reference in a new issue