scroll-to-bottom=keystroke should not be triggered by key release events
#13026
Unanswered
atuooo
asked this question in
Issue Triage
Replies: 1 comment
-
|
I am having the same exact problem but on linux/gtk and with my Adding onto this issue since I spent some time reproducing it with a video and screenshot of my keyboard inputs on main commit 73534c4 disclosure: I used codex to debug, build ghostty on main, and get clean recordings/screenshots. All text above was written and edited by me only. ghostty-key-release-20260720-140213.webm
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
When an application has enabled the Kitty keyboard protocol with the "report event types" flag (release reporting), quickly pressing and releasing the copy shortcut (Cmd+C) unexpectedly scrolls the viewport to the bottom.
This is caused by the key release ordering: Cmd is usually released before C, so the C release arrives with no modifiers. With Kitty keyboard release reporting enabled, this release is sent to the PTY, where scroll-to-bottom=keystroke treats it as a keystroke and scrolls to the bottom.
Expected Behavior
A key release event should not trigger scroll-to-bottom=keystroke. Only press and repeat events represent new user input and should cause an auto-scroll. Pressing and releasing Cmd+C (or any key) should not move the viewport to the bottom.
Actual Behavior
When the Kitty keyboard protocol's release reporting is active, releasing the C key of a Cmd+C shortcut (with Cmd released first) scrolls the viewport to the bottom, even though no new input was produced.
Reproduction Steps
printf '\e[>2u'; cat -v.Ghostty Logs
No response
Ghostty Version
OS Version Information
macOS 26.0.1 (25A362)
(Linux only) Display Server
None
(Linux only) Desktop Environment/Window Manager
No response
Minimal Ghostty Configuration
Additional Relevant Configuration
No response
I acknowledge that:
```) on separate lines.Beta Was this translation helpful? Give feedback.
All reactions