feat(tui): add Kitty keyboard protocol flag 2 support for key release events

- Enable flag 2 in Kitty protocol for event type reporting
- Add isKeyRelease() and isKeyRepeat() functions
- Parse event type suffix (:1/:2/:3) in Kitty sequences
- Export KeyEventType type
This commit is contained in:
Mario Zechner 2026-01-07 00:41:44 +01:00
parent d863c8eb21
commit a2f032a426
4 changed files with 99 additions and 15 deletions

View file

@ -2,6 +2,10 @@
## [Unreleased]
### Added
- Kitty keyboard protocol flag 2 support for key release events. New exports: `isKeyRelease(data)`, `isKeyRepeat(data)`, `KeyEventType` type. Terminals supporting Kitty protocol (Kitty, Ghostty, WezTerm) now send proper key-up events.
## [0.37.5] - 2026-01-06
## [0.37.4] - 2026-01-06