mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-21 18:08:46 -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
|
||||
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