Skip to content

Commit 3bddd04

Browse files
committed
Improve content editable check
1 parent e4b05a3 commit 3bddd04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2524,7 +2524,7 @@ function addHotkeyListener(): void {
25242524

25252525
function hotkeyListener(e: KeyboardEvent): void {
25262526
if ((["textarea", "input"].includes(document.activeElement?.tagName?.toLowerCase())
2527-
|| document.activeElement?.["contentEditable"] === "true"
2527+
|| (document.activeElement as HTMLElement)?.isContentEditable
25282528
|| document.activeElement?.id?.toLowerCase()?.match(/editable|input/))
25292529
&& document.hasFocus()) return;
25302530

0 commit comments

Comments
 (0)