From 547a1da0d4047b300b785a0db3d7ba5d9e0c5885 Mon Sep 17 00:00:00 2001 From: yosh Date: Wed, 9 Jul 2025 03:52:21 +0900 Subject: [PATCH] impl: blurForcusedElementOnActivation --- src/background/Program.ts | 1 + src/options/Program.tsx | 35 +++++++++++++++++++++++++++++++++++ src/shared/messages.ts | 1 + src/shared/options.ts | 2 ++ src/worker/Program.ts | 15 +++++++++++++++ 5 files changed, 54 insertions(+) diff --git a/src/background/Program.ts b/src/background/Program.ts index ac946430..34b8e243 100644 --- a/src/background/Program.ts +++ b/src/background/Program.ts @@ -2173,6 +2173,7 @@ export default class BackgroundProgram { oneTimeWindowMessageToken: this.oneTimeWindowMessageToken, mac: this.options.mac, isPinned: tabState.isPinned, + blurFocusedElementOnActivation: this.options.values.blurFocusedElementOnActivation, }; const getKeyboardShortcuts = ( diff --git a/src/options/Program.tsx b/src/options/Program.tsx index f27600c4..ebc50197 100644 --- a/src/options/Program.tsx +++ b/src/options/Program.tsx @@ -615,6 +615,41 @@ export default class OptionsProgram extends Component { )} /> + + When enabled, any currently focused element (like input fields or + text areas) will be blurred when hints are activated. This can + prevent the focused element from capturing keyboard input that + should go to the link hints system. +

+ } + changed={options.blurFocusedElementOnActivation !== defaults.blurFocusedElementOnActivation} + render={({ id }) => ( + + + + )} + /> + { const { oneTimeWindowMessageToken } = this; if (oneTimeWindowMessageToken === undefined) {