Skip to content

Fix text-producing keys in Kitty keyboard REPORT_EVENT_TYPES mode#5824

Open
wngtk wants to merge 1 commit intoxtermjs:masterfrom
wngtk:fix/kitty-keyboard-text-producing-keys
Open

Fix text-producing keys in Kitty keyboard REPORT_EVENT_TYPES mode#5824
wngtk wants to merge 1 commit intoxtermjs:masterfrom
wngtk:fix/kitty-keyboard-text-producing-keys

Conversation

@wngtk
Copy link
Copy Markdown

@wngtk wngtk commented Apr 19, 2026

Attempt to fix #5823

In REPORT_EVENT_TYPES mode (CSI > 3 u), text-producing keys like Shift+1 should send the actual character ('!') for PRESS events, not CSI u escape sequences. Only REPEAT and RELEASE events should use CSI u for text-producing keys, while function keys use CSI u for all event types.

Fixes issue where Shift+1 was not outputting '!' character.

In REPORT_EVENT_TYPES mode (CSI > 3 u), text-producing keys like Shift+1
should send the actual character ('!') for PRESS events, not CSI u escape
sequences. Only REPEAT and RELEASE events should use CSI u for text-producing
keys, while function keys use CSI u for all event types.

Fixes issue where Shift+1 was not outputting '!' character.
@wngtk wngtk force-pushed the fix/kitty-keyboard-text-producing-keys branch from 7f26b36 to f15a790 Compare April 19, 2026 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In Neovim Shift+number keys produce digits instead of symbols with Kitty keyboard protocol

1 participant