aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/content.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/content.ts b/src/content.ts
index c9f09c62..cce56c04 100644
--- a/src/content.ts
+++ b/src/content.ts
@@ -2523,9 +2523,10 @@ function addHotkeyListener(): void {
}
function hotkeyListener(e: KeyboardEvent): void {
- if (["textarea", "input"].includes(document.activeElement?.tagName?.toLowerCase())
- || document.activeElement?.["contentEditable"]
- || document.activeElement?.id?.toLowerCase()?.match(/editable|input/)) return;
+ if ((["textarea", "input"].includes(document.activeElement?.tagName?.toLowerCase())
+ || document.activeElement?.["contentEditable"] === "true"
+ || document.activeElement?.id?.toLowerCase()?.match(/editable|input/))
+ && document.hasFocus()) return;
const key: Keybind = {
key: e.key,