From 171aa08342ca201ee6d1442b4c12ba35a7a24269 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 21 Mar 2025 12:44:19 -0700 Subject: [PATCH] make tabs tabbable --- .../components/mainInput/Lump/TopInputToolbar.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/gui/src/components/mainInput/Lump/TopInputToolbar.tsx b/gui/src/components/mainInput/Lump/TopInputToolbar.tsx index bdf379f9a..e77e62da4 100644 --- a/gui/src/components/mainInput/Lump/TopInputToolbar.tsx +++ b/gui/src/components/mainInput/Lump/TopInputToolbar.tsx @@ -23,18 +23,25 @@ function TopToolbarIcon(props: TopToolbarIconProps) { return (
{ + if (e.key === "Enter" || e.key === " ") { + e.preventDefault(); + props.onClick(); + } + }} style={{ backgroundColor: props.isSelected ? vscBadgeBackground : undefined, }} - className={`relative flex select-none items-center px-0.5 transition-all duration-200 ${ - props.isSelected ? "rounded-full" : "" - }`} + className={`relative flex select-none items-center rounded-full px-0.5 transition-all duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500/50`} >