diff options
author | Ajay <[email protected]> | 2024-09-27 02:06:08 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2024-09-27 02:06:08 -0400 |
commit | bec183d595141cf000088174e12e8b959222baa5 (patch) | |
tree | a37f16f4092c2925c3950b0dbf45c729c4890c25 | |
parent | a2f4f34dfe3d7783f798e5fb77f9e4e0c3aadc64 (diff) | |
download | SponsorBlock-bec183d595141cf000088174e12e8b959222baa5.tar.gz SponsorBlock-bec183d595141cf000088174e12e8b959222baa5.zip |
Fix not allowing you to type ' in live chats
-rw-r--r-- | src/content.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/content.ts b/src/content.ts index f919026c..c9f09c62 100644 --- a/src/content.ts +++ b/src/content.ts @@ -2524,7 +2524,8 @@ function addHotkeyListener(): void { function hotkeyListener(e: KeyboardEvent): void { if (["textarea", "input"].includes(document.activeElement?.tagName?.toLowerCase()) - || document.activeElement?.id?.toLowerCase()?.includes("editable")) return; + || document.activeElement?.["contentEditable"] + || document.activeElement?.id?.toLowerCase()?.match(/editable|input/)) return; const key: Keybind = { key: e.key, |