From 0171427a10f168da0d5b733fa5d0786c4d63b851 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Mon, 2 Nov 2026 20:58:23 -0500 Subject: [PATCH] fix(a11y): Tab cancels shortcut recording instead of binding Tab, and focus stays on the shortcut (#33597) --- .../components/chat/Settings/Shortcuts.svelte | 32 +++++++++++++++---- 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/src/lib/components/chat/Settings/Shortcuts.svelte b/src/lib/components/chat/Settings/Shortcuts.svelte index 573bd22b65..e9ff47ad81 100644 --- a/src/lib/components/chat/Settings/Shortcuts.svelte +++ b/src/lib/components/chat/Settings/Shortcuts.svelte @@ -1,6 +1,6 @@ @@ -232,15 +245,18 @@ {#if configurable} {#if recordingShortcut === id} {$i18n.t('Press keys...')} {:else if chord} @@ -249,14 +265,18 @@ type="button" aria-label={$i18n.t('Remove')} title={$i18n.t('Remove')} - on:click={() => setBinding(id, '')} + on:click={async () => { + await setBinding(id, ''); + focusBinding(id); + }} > {:else}