Shift + mouse wheel does not send shift #11971
Replies: 3 comments 7 replies
-
|
Im not sure what behavior you expect to see but on linux I see no difference with scroll-wheel up and shift scroll-wheel up using your vim config (I assume thats what you are reporting) I believe this is because shift actually overrides mouse reporting in the alternate screen and lets ghostty handle mouse events (even for programs that don't have mouse events) This lets you select text from ghostty instead of in vim for example, or do link detection |
Beta Was this translation helpful? Give feedback.
-
|
I looked into the source code myself. This has nothing to do with Lines 3505 to 3533 in 63372f8 This code sends raw up and down key code to the terminal without encoding the modifiers at all. The modifiers are correctly set in the program at this stage, and is able to forward it to the application. |
Beta Was this translation helpful? Give feedback.
-
|
But unclear from my side if this is intended or incidental xterm behavior, and we need a very overwhelming reason to break xterm compatbility. Key points:
I'm on the side of thinking this is a good idea, but want to make sure that xterm is not doing this incidentally before we break from that behavior, since for better and worse it defines how Ghostty behaves for legacy stuff like this. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
I have the following vim config
Which allows me to scroll the content up and down using mouse wheel without enabling mouse mode (whereas regular mouse wheel moves the cursor line).
Expected Behavior
In iTerm2, holding shift while scrolling down does trigger
<s-up>and move the content up and down.Actual Behavior
Ghotty appears to be just sending
<up>unless mouse mode is enabled.Reproduction Steps
Use vim config
Open help doc and hold shift to scroll.
Ghostty Logs
No response
Ghostty Version
OS Version Information
macOS 26.4 (25E246)
(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