Skip to content

Ctrl+letter keys never reach the shell (legacy encoder ignores modifiers) #250

Closed

Description

@Xuepoo

Problem (user: fish Ctrl+F/Ctrl+P/emacs keys dead; code-confirmed)

encode_key_event (platform/keyboard.rs) uses winit text verbatim, else the bare logical char - control state is NEVER synthesized in the legacy path. On Wayland winit reports text=None for Ctrl+letter, so Ctrl+F sends plain f (inserts letter instead of accepting fish suggestion), Ctrl+P sends p AND the app focus matcher ALSO fires Prev (double handling). Runtime tracks control_pressed via modifier key events but the legacy encoder never consults it.

Expected

Acceptance

Live ws4: od -tx1 shows 06/10/03 for Ctrl+F/P/C; fish autosuggest accepts; just check green.
Priority: P0 | Area: input | Labels: fix,area:input,P0 | Milestone: v0.1.0 | RFC: - | Task: TBD

Activity

  1. added this to the v0.1.0 milestone on Sep 3, 2026
  2. added
    fix
    P0
    on Sep 3, 2026
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

    P0area:inputfix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions