Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(v2) feat: combine keyboard enhancements into a nicer API #1152

Merged
merged 8 commits into from
Sep 18, 2024

Conversation

aymanbagabas
Copy link
Member

@aymanbagabas aymanbagabas commented Sep 17, 2024

This change combines the keyboard enhancements into a nicer API. Kitty keyboard protocol and XTerm modifyOtherKeys are now combined into a single API. This makes it easier to enable keyboard enhancements.

Use WithKeyboardEnhancements to enable keyboard enhancements. This function accepts a list of KeyboardEnhancement functions that can be used to enable different keyboard features.

For now, we only support the WithKeyReleases enhancement which enables support for reporting release key events.

options.go Outdated Show resolved Hide resolved
This change combines the keyboard enhancements into a nicer API. Kitty
keyboard protocol and XTerm modifyOtherKeys are now combined into a
single API. This makes it easier to enable keyboard enhancements.

Use `WithKeyboardEnhancements` to enable keyboard enhancements. This
function accepts a list of `KeyboardEnhancement` functions that can be
used to enable different keyboard features.

For now, we only support the `WithReleaseKeys` enhancement which enables
support for reporting release key events.
@aymanbagabas aymanbagabas changed the title feat: combine keyboard enhancements into a nicer API (v2) feat: combine keyboard enhancements into a nicer API Sep 17, 2024
@aymanbagabas aymanbagabas merged commit 7cb34be into v2-exp Sep 18, 2024
30 checks passed
@aymanbagabas aymanbagabas deleted the v2-enhanced-keyboard branch September 18, 2024 18:23
aymanbagabas added a commit that referenced this pull request Sep 20, 2024
Fixes: 7cb34be ((v2) feat: combine keyboard enhancements into a nicer API (#1152))
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.

2 participants