#143 Prevent quicksearch hotkey if document.activeElement is a textarea #145

Merged
Serraniel merged 1 commit from bugfix/#143-quicksearch-hotkey-triggers-when-watch2gether-chat-is-focused into develop 2020-12-13 16:09:22 +01:00

View file

@ -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;
}