diff options
author | 2023-09-17 14:05:52 +0800 | |
---|---|---|
committer | 2023-09-17 14:05:52 +0800 | |
commit | 15e1ce757793b804297e5243b8aec31bb0b0c113 (patch) | |
tree | 0a4a52b41d79501b8a33e92fcf0da6d80df38f94 /source/features/hide-navigation-hover-highlight.tsx | |
parent | ca584846ff0ded8dd79cb877dccdab9570aface9 (diff) | |
download | refined-github-15e1ce757793b804297e5243b8aec31bb0b0c113.tar.gz refined-github-15e1ce757793b804297e5243b8aec31bb0b0c113.tar.zst refined-github-15e1ce757793b804297e5243b8aec31bb0b0c113.zip |
Disable `dim-bots` only when clicking on empty areas (#6910)
Diffstat (limited to '')
-rw-r--r-- | source/features/hide-navigation-hover-highlight.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/hide-navigation-hover-highlight.tsx b/source/features/hide-navigation-hover-highlight.tsx index f67cc100..cafb1367 100644 --- a/source/features/hide-navigation-hover-highlight.tsx +++ b/source/features/hide-navigation-hover-highlight.tsx @@ -7,7 +7,7 @@ const html = document.documentElement; function init(): void { html.setAttribute(attribute, ''); - html.addEventListener('navigation:focus', () => { + html.addEventListener('navigation:keydown', () => { html.removeAttribute(attribute); }, {once: true}); } |