#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
Showing only changes of commit af711355f3 - Show all commits

View file

@ -70,7 +70,7 @@ function handleQuickSearch(event) {
function handleSearchForShiftF(event) { function handleSearchForShiftF(event) {
if (helper.isShiftPressed) { if (helper.isShiftPressed) {
// check if some kind of input is focused already; we then prevent our hotkey // 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; return;
} }