From bec183d595141cf000088174e12e8b959222baa5 Mon Sep 17 00:00:00 2001 From: Ajay Date: Fri, 27 Sep 2024 02:06:08 -0400 Subject: [PATCH] Fix not allowing you to type ' in live chats --- src/content.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,