feat: add ReportAllKeysAsEscapeCodes keyboard enhancement option (#1621)#1622
Open
neomantra wants to merge 1 commit intocharmbracelet:mainfrom
Open
feat: add ReportAllKeysAsEscapeCodes keyboard enhancement option (#1621)#1622neomantra wants to merge 1 commit intocharmbracelet:mainfrom
neomantra wants to merge 1 commit intocharmbracelet:mainfrom
Conversation
…rmbracelet#1621) Some terminals send modified printable keys (e.g. Shift+Space) as raw character bytes on press, losing modifier information. This adds support for requesting Kitty keyboard protocol flag 8 (ReportAllKeysAsEscapeCodes), which ensures all keys are sent as CSI u-escape codes that preserve modifier state. Add --all-keys argument to keyboard-enhancements demo to exercise it. Signed-off-by: Evan Wies <evan@neomantra.net>
aymanbagabas
added a commit
that referenced
this pull request
Mar 14, 2026
This adds support for the Kitty keyboard protocol's extended enhancements, allowing applications to request that the terminal report additional information about key events, such as whether they're part of a repeat sequence, alternate key values, and associated text. Supersedes: #1622 Fixes: #1621 Fixes: #1623
aymanbagabas
added a commit
that referenced
this pull request
Apr 7, 2026
This adds support for the Kitty keyboard protocol's extended enhancements, allowing applications to request that the terminal report additional information about key events, such as whether they're part of a repeat sequence, alternate key values, and associated text. Supersedes: #1622 Fixes: #1621 Fixes: #1623
Member
|
Hi @neomantra, I've merged #1626 and the changes will be available in the next Bubble Tea v2 release. In the meantime, you could |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some terminals send modified printable keys (e.g. Shift+Space) as raw character bytes on press, losing modifier information. This adds support for requesting Kitty keyboard protocol flag 8 (ReportAllKeysAsEscapeCodes), which ensures all keys are sent as CSI u-escape codes that preserve modifier state.
Add --all-keys argument to keyboard-enhancements demo to exercise it.
CONTRIBUTING.md.I used Claude to navigate the surface of this issue, so I don't have a strong understanding of the Kitty protocol and the ramifications of this change. I couldn't find reference to
KittyReportAllKeysAsEscapeCodeson Discord or GitHub.That said, when I enable this, many messages are flowing in the
keyboard-enhancementsdemo whenv.KeyboardEnhancements.ReportAllKeysAsEscapeCodes = true: