Skip to content

Commit

Permalink
Fix not allowing you to type ' in live chats
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayyy committed Sep 27, 2024
1 parent a2f4f34 commit bec183d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bec183d

Please sign in to comment.