Skip to content

#595 Stage 4 — wire remaining TuiShellApp::handle key dispatch (dialog/palette/completion/context-menu + #318 Alt-reveal shim) #603

Description

@JDonaghy

Part of epic #595, milestone #9 TUI ShellApp Migration. Stage 4 of the work order. Depends on Stage 1/2.

Goal

Wire the remaining KeyPressed dispatch into TuiShellApp::handle (src/tui_main/shell_app.rs). Today handle only routes plain KeyPressed to Engine::handle_key (already backend-agnostic) plus panel-key accelerators + MenuSystem intercept; everything else returns Reaction::Continue with a // TODO(#595) marker.

Scope

Port the higher-priority key intercepts from event_loop():

  • dialog / command-palette / completion-popup / context-menu key handling (the modal intercepts that must consume keys before Engine::handle_key).
  • The "TUI: default Alt+letter keybindings clash with menu bar shortcuts #318" Alt+menu-letter "reveal menu bar" shim (mod.rs:1275-:1294) that sits between the accelerator and MenuSystem dispatch layers — sets engine.menu_bar_visible = true on Alt+ so the same keystroke both reveals and activates the menu. Explicitly NOT yet ported (called out in the module doc so it isn't assumed complete).

Acceptance

  • Palette/dialog/completion/context-menu keyboard flows work through ShellApp::handle.
  • driver_with_shell key-injection assertions covering at least the palette open + Alt-reveal path.

Dependencies

Depends on Stage 1/2. No cross-repo dep. Refs: PLAN.md Stage 4; shell_app.rs module doc (Alt-reveal shim note).

Activity

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

    coordTracked by coord-tui pipelineenhancementNew feature or requestinfrastructureBuild, CI, distributionstatus:readyRefined and ready to enter the work pipelinetest-mode:autocoord: per-issue test-mode policy

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions