You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make the connect menu, menus and connection tabs work by keyboard #827
The invisible-when-focused hover buttons (the popover's Edit pencil, the tab's Disconnect X) are covered by #784. This issue is the rest.
What happens
On ?mock, Tab to + ("Connect to a server") and press Enter. The popover opens, but focus stays on +. Escape does not close the popover.
Choose a profile with Enter. After connecting, focus drops to <body>.
On ?mock=connected, Tab through the tab bar. The connection tab itself is never focusable (focus goes straight to its Disconnect X). Its Edit / Duplicate / Disconnect / Delete menu opens only on right-click.
Open the File menu and press ArrowDown, ArrowRight or Escape-then-arrows. There is no arrow-key navigation. With a menu open, hovering another title ("Database") does not switch to it.
Cause
src/components/layout/ConnectionTabs.tsx:131-146: the popover handles only outside mousedown, with no Escape and no focus management.
src/components/layout/ConnectionTabs.tsx:184-192: connection tabs are plain divs with onClick/onContextMenu, with no role, tabIndex or key handler.
src/components/layout/MenuBar.tsx:33-63: plain buttons, no role="menubar"/menu/menuitem, no arrow keys, no hover-to-switch.
Fix
Popover: close on Escape and return focus to +. Move focus to the first item on open, use arrow keys within it, and focus the new connection tab after connecting.
Connection tabs: role="tablist"/role="tab" with roving tabIndex and arrow keys (as src/components/editor/EditorTabs.tsx:194-205 does), plus Shift+F10 / the Menu key for the context menu.
Menu bar: implement the WAI-ARIA menubar pattern (arrows, Home/End, Escape returns focus to the title, hover switches while open).
Activity
fix: keyboard access for menus and connection tabs
test: connection tab menu works with the keyed menu