mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-22 02:18:45 -04:00
Merge pull request #544 from jacobcolbert/fix-543
Prevent disabling default keybindings from disabling text input.
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