From 15e1ce757793b804297e5243b8aec31bb0b0c113 Mon Sep 17 00:00:00 2001 From: Federico Brigante Date: Sun, 17 Sep 2023 14:05:52 +0800 Subject: Disable `dim-bots` only when clicking on empty areas (#6910) --- source/features/hide-navigation-hover-highlight.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/features/hide-navigation-hover-highlight.tsx') 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}); } -- cgit v1.2.3