#143 Prevent quicksearch hotkey if document.activeElement is a textarea #145
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue