Skip to content

Parse Kitty Keyboard Protocol esc codes to suport Ctrl-Shift-<Key> shortcuts#887

Open
UnnaturalTwilight wants to merge 2 commits into
microsoft:mainfrom
UnnaturalTwilight:fix/CSI-u-inputs
Open

Parse Kitty Keyboard Protocol esc codes to suport Ctrl-Shift-<Key> shortcuts#887
UnnaturalTwilight wants to merge 2 commits into
microsoft:mainfrom
UnnaturalTwilight:fix/CSI-u-inputs

Conversation

@UnnaturalTwilight

Copy link
Copy Markdown
Contributor

Adds parsing for the most basic form of Kitty keyboard events. This fixes the existing Ctrl-Shift-z shortcut for redo when using a terminal that implements the kitty keyboard protocol. I have also add Ctrl-Shift-c as an additional shortcut for copy since that is often used in terminals.

Not a full implementation but solves some of: #29

I have tested this in Kitty on linux and in Windows Terminal through WSL.
I have only tested this with an en-us qwerty keyboard layout.

this is needed to parse ctrl+shift+<a...z> and other unprintable modifier combos
I have only tested this with en-us querty and it may have weird behavor with non latin layouts due to casting the codepoint to u8
@UnnaturalTwilight

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

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.

1 participant