From 271b00d7ee249d623e2dfa8ce3719ee514b80e08 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Fri, 30 Oct 2026 15:57:44 -0400 Subject: [PATCH] fix(a11y): Enter and Space on a tool call's Allow and Deny buttons answer the request (#33404) --- src/lib/components/common/ToolCallDisplay.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/components/common/ToolCallDisplay.svelte b/src/lib/components/common/ToolCallDisplay.svelte index 6d2470cc94..7439e70ee7 100644 --- a/src/lib/components/common/ToolCallDisplay.svelte +++ b/src/lib/components/common/ToolCallDisplay.svelte @@ -165,6 +165,7 @@ }; const toggleOpenOnKeydown = (event: KeyboardEvent) => { + if (event.target !== event.currentTarget) return; if (event.key !== 'Enter' && event.key !== ' ') { return; } @@ -204,6 +205,7 @@ class="{buttonClassName} w-full min-w-0 cursor-pointer" role="button" tabindex="0" + aria-expanded={open} on:click={toggleOpen} on:keydown={toggleOpenOnKeydown} >