Merge pull request #145 from Serraniel/bugfix/#143-quicksearch-hotkey-triggers-when-watch2gether-chat-is-focused
#143 Prevent quicksearch hotkey if document.activeElement is a textarea
This commit is contained in:
commit
e067c0cb00
|
@ -70,7 +70,7 @@ function handleQuickSearch(event) {
|
|||
function handleSearchForShiftF(event) {
|
||||
if (helper.isShiftPressed) {
|
||||
// check if some kind of input is focused already; we then prevent our hotkey
|
||||
if (document.activeElement instanceof HTMLInputElement || document.activeElement.isContentEditable) {
|
||||
if (document.activeElement instanceof HTMLInputElement || document.activeElement instanceof HTMLTextAreaElement || document.activeElement.isContentEditable) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue