Skip to content

Support more of the Kitty keyboard protocol #6417

Closed

Description

@willmcgugan

In particular, support key release event so an app could detect long-presses.

Activity

  1. mgesbert commented on Apr 8, 2026

    @mgesbert
    Collaborator

    We are currently working on unifying the experience across terminals and we face issue with various degree of support for the kitty protocol in Textual. Notably we are trying to bring shortcuts like alt+backspace into Warp and Ghostty.
    Our top priority would be to improve Textual's support of the kitty keyboard protocol as per https://sw.kovidgoyal.net/kitty/keyboard-protocol/#progressive-enhancement.
    In our case for alt+backspace to work it would require the support up to flag 8.

  2. self-assigned this
    on Apr 16, 2026
  3. willmcgugan commented on May 15, 2026

    @willmcgugan
    MemberAuthor

    @mgesbert Enabling flag 8 enables alt+backspace on Warp. Although Ghostty and Kitty both report alt+backspace without it.

    Enabling flag 8 looks straightforward. It does introduce new events. Currently modified pressed by themselves aren't reported. With flag 8, modifier keys produce an event of their own, which will need support in Textual. i.e, if you press a capital A, you will get a SHIFT event followed by an A event.

    What other features of the Kitty key protocol do you want to expose?

  4. github-actions commented on May 16, 2026

    @github-actions

    I hope I solved your issue!

    Consider sponsoring my work to continue to maintain and develop Textual.

    • Will McGugan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions