input: kitty keyboard protocol - report events #822

Manually merged
dnkl merged 7 commits from kitty-kbd-event-types into master 2 months ago
dnkl commented 2 months ago
Owner

This adds support for the Kitty protocol "report events" mode.

The generic input handling has been rewritten slightly, to allow passing the press/release state to the kitty protocol handler. This basically comes down to not returning early on release events, but instead conditionally checking for internal bindings.

The legacy handler is now called for both press and release events, but returns early on releases.

In the kitty handler, it basically comes down to ensuring we emit escape codes for all release events.

Note: the event type is encoded as a sub-parameter to the modifier parameter. Kitty omits this for press events, while we explicitly emit a :1.

Related to: #319

This adds support for the Kitty protocol ["report events"](https://sw.kovidgoyal.net/kitty/keyboard-protocol/#report-events) mode. The generic input handling has been rewritten slightly, to allow passing the press/release state to the kitty protocol handler. This basically comes down to not returning early on release events, but instead conditionally checking for internal bindings. The legacy handler is now called for both press and release events, but returns early on releases. In the kitty handler, it basically comes down to ensuring we emit **escape codes** for all release events. Note: the event type is encoded as a sub-parameter to the `modifier` parameter. Kitty omits this for **press** events, while we explicitly emit a `:1`. Related to: #319
dnkl added the
enhancement
label 2 months ago
dnkl added 2 commits 2 months ago
56190cc837
input: don’t ignore key release events
607e6d64df
input: kitty: add support for the “report event” mode (0b10)
dnkl added 1 commit 2 months ago
9d3a7a0f54
changelog: kitty: report events
dnkl added 1 commit 2 months ago
0976ea7e28
input: kitty: treat repeating == pressed when report-events is off
dnkl force-pushed kitty-kbd-event-types from 0976ea7e28 to 35b19d33e5 2 months ago
dnkl added 2 commits 2 months ago
4b0f510cdf
input: kitty: merge handling of plain-text and composed characters
dnkl added 6 commits 2 months ago
17fdd9f2de
input: don’t ignore key release events
82813a9b12
input: kitty: merge handling of plain-text and composed characters
dnkl added 6 commits 2 months ago
05454bd519
input: don’t ignore key release events
fc488f253b
input: kitty: merge handling of plain-text and composed characters
dnkl added 7 commits 2 months ago
60c730a4de
input: don’t ignore key release events
5eb4cfa263
input: kitty: merge handling of plain-text and composed characters
14f92b7be5
changelog: move entry to ‘unreleased’
dnkl added 7 commits 2 months ago
0193f5bd9b
input: don’t ignore key release events
93a8f51b75
input: kitty: merge handling of plain-text and composed characters
20c887b996
changelog: move entry to ‘unreleased’
dnkl merged commit a62e3cdb3d into master manually 2 months ago
continuous-integration/woodpecker the build was successful
The pull request has been manually merged as a62e3cdb3d.
Sign in to join this conversation.
Loading…
There is no content yet.