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

Implement "report alternate keys" from the Kitty Keyboard Protocol #754

Commits on Feb 8, 2023

  1. Implement "report alternate keys" from the Kitty Keyboard Protocol

    The "report alternate keys" part of the Kitty keyboard protocol will
    send an additional codepoint containing the "shifted" version of a
    key based on the keyboard layout. This is useful for downstream
    applications which set up keybindings based on symbols instead of
    exact keys being pressed.
    
    For example, underscore (_) with the Alt modifier is sent as minus (-)
    with Alt and Shift modifiers. A terminal will send the underscore
    codepoint as an alternate though, and we can use that information and
    the presence of the Shift modifier to resolve the symbol. Other
    examples are 'A-(' (sent as 'A-S-9') and 'A-)' (sent as 'A-S-0').
    
    This change allows pushing the "report alternate keys" flag and
    overwrites the keycode and modifiers for any shifted keys sent by the
    terminal.
    the-mikedavis committed Feb 8, 2023
    Configuration menu
    Copy the full SHA
    e5988f3 View commit details
    Browse the repository at this point in the history