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

This commit is contained in:
Serraniel 2020-12-13 13:05:49 +01:00
parent d45af17856
commit af711355f3
Signed by: Serraniel
GPG key ID: 3690B4E7364525D3

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