aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2024-09-27 02:06:08 -0400
committerAjay <[email protected]>2024-09-27 02:06:08 -0400
commitbec183d595141cf000088174e12e8b959222baa5 (patch)
treea37f16f4092c2925c3950b0dbf45c729c4890c25
parenta2f4f34dfe3d7783f798e5fb77f9e4e0c3aadc64 (diff)
downloadSponsorBlock-bec183d595141cf000088174e12e8b959222baa5.tar.gz
SponsorBlock-bec183d595141cf000088174e12e8b959222baa5.zip
Fix not allowing you to type ' in live chats
-rw-r--r--src/content.ts3
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,