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
|
||||
if (document.activeElement.nodeName === 'INPUT'
|
||||
|| document.activeElement.nodeName === 'TEXTAREA'
|
||||
|| document.activeElement.isContentEditable) {
|
||||
if (event.target.nodeName === 'INPUT'
|
||||
|| event.target.nodeName === 'TEXTAREA'
|
||||
|| event.target.isContentEditable) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user