Skip to content

Make the connect menu, menus and connection tabs work by keyboard #827

Closed

Description

@EVWorth

Severity: P2 (NFR-3.1 keyboard-first navigation)

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

  1. On ?mock, Tab to + ("Connect to a server") and press Enter. The popover opens, but focus stays on +. Escape does not close the popover.
  2. Choose a profile with Enter. After connecting, focus drops to <body>.
  3. 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.
  4. 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).

Part of #783.

Activity

  1. added
    bug
    on Oct 21, 2026
  2. added 2 commits that reference this issue on Oct 24, 2026
    a69cf64
    a56e182
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions