Skip to content

Encode Kitty F3 and special-key releases - #176

Merged
tony merged 4 commits into
masterfrom
fix/82-kitty-key-events
Dec 5, 2026
Merged

tony merged 4 commits into
masterfrom
fix/82-kitty-key-events

Conversation

@tony

@tony tony commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Closes #82
Closes #118
Closes #130

What changed, and why:

Enhanced F3 uses CSI 13 ~, which is distinguishable from cursor reports. Enter, Tab, and Backspace releases require the report-all flag regardless of modifiers. A runnable example combines the flags for key presses, associated text, and releases.

Checks run:

On Linux, Ruff formatting and lint, ty for Python 3.12 through 3.15, the full pytest suite with doctests, compiled Ghostty comparisons, and the Sphinx warnings-as-errors build passed.

Tool use:

Codex prepared the change and ran the local checks. A separate Codex reviewer replayed the changed behavior and checked the publication tree against the reviewed patch.

tony added a commit that referenced this pull request Dec 3, 2026
why: Readers need the behavior and scope of this change at release.

what:
- Add the unreleased entry for PR #176
- Preserve previously published notes and the parent branch's entries
@tony
tony marked this pull request as ready for review December 3, 2026 01:46
@tony
tony force-pushed the fix/82-kitty-key-events branch from 1b22066 to 4d74e4f Compare December 3, 2026 23:58
tony added 4 commits December 5, 2026 07:25
why: A modified F3 can have the same bytes as a cursor-position reply.

what:
- Encode enhanced F3 with CSI 13 ~ and retain legacy SS3.
- Test presses, repeats and releases alongside a cursor report.

Fixes #82
why: Modifiers alone do not request Enter, Tab or Backspace releases.

what:
- Suppress those releases until the report-all flag is set.
- Check both flag combinations and ordinary Escape release.

Fixes #118
why: Applications must request associated text along with key events.

what:
- Show the flag combination and resulting press and release bytes.

Fixes #130
why: Kitty F3 shares a letter with cursor reports, and some release
     events require all-key reporting.

what:
- Document the F3 form, release flags and associated-text example.
@tony
tony force-pushed the fix/82-kitty-key-events branch from 4d74e4f to bf79e67 Compare December 5, 2026 13:25
@tony
tony changed the base branch from master to fix/105-appearance-assertions December 5, 2026 13:25
@tony
tony changed the base branch from fix/105-appearance-assertions to master December 5, 2026 13:29
@tony
tony merged commit bb9caa6 into master Dec 5, 2026
9 checks passed
@tony tony mentioned this pull request Dec 5, 2026
35 of 38 tasks
@tony
tony deleted the fix/82-kitty-key-events branch December 5, 2026 20:41

This branch was successfully deployed

1 active deployment
docs — bf79e678 Deployed Dec 5, 2026 by tony via build (3.14) #393
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant