summaryrefslogtreecommitdiff
path: root/source/features/hide-navigation-hover-highlight.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <me@fregante.com> 2023-09-17 14:05:52 +0800
committerGravatar GitHub <noreply@github.com> 2023-09-17 14:05:52 +0800
commit15e1ce757793b804297e5243b8aec31bb0b0c113 (patch)
tree0a4a52b41d79501b8a33e92fcf0da6d80df38f94 /source/features/hide-navigation-hover-highlight.tsx
parentca584846ff0ded8dd79cb877dccdab9570aface9 (diff)
downloadrefined-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.tsx2
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});
}