diff options
author | Ajay <[email protected]> | 2024-09-27 16:12:35 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2024-09-27 16:12:35 -0400 |
commit | 3bddd0405c15b30320d1d1e4ee8d4f14cf0d2682 (patch) | |
tree | dc5e278981e184a5e2a500ce82da70b0f3b4d0eb | |
parent | e4b05a316a521e2b54ac87ab38e3183e84b90383 (diff) | |
download | SponsorBlock-3bddd0405c15b30320d1d1e4ee8d4f14cf0d2682.tar.gz SponsorBlock-3bddd0405c15b30320d1d1e4ee8d4f14cf0d2682.zip |
Improve content editable check
-rw-r--r-- | src/content.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content.ts b/src/content.ts index cce56c04..c62865b2 100644 --- a/src/content.ts +++ b/src/content.ts @@ -2524,7 +2524,7 @@ function addHotkeyListener(): void { function hotkeyListener(e: KeyboardEvent): void { if ((["textarea", "input"].includes(document.activeElement?.tagName?.toLowerCase()) - || document.activeElement?.["contentEditable"] === "true" + || (document.activeElement as HTMLElement)?.isContentEditable || document.activeElement?.id?.toLowerCase()?.match(/editable|input/)) && document.hasFocus()) return; |