mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-21 18:08:46 -04:00
Check target of keyEvent instead of activeElement for text editability
This commit is contained in:
@@ -364,9 +364,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Ignore keydown event if typing in an input box
|
// Ignore keydown event if typing in an input box
|
||||||
if (document.activeElement.nodeName === 'INPUT'
|
if (event.target.nodeName === 'INPUT'
|
||||||
|| document.activeElement.nodeName === 'TEXTAREA'
|
|| event.target.nodeName === 'TEXTAREA'
|
||||||
|| document.activeElement.isContentEditable) {
|
|| event.target.isContentEditable) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user