mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
Merge pull request #1910 from ghostty-org/mouse-capture
core: mouse shift escape applies to all buttons, not just left
This commit is contained in:
@ -2240,7 +2240,7 @@ pub fn mouseButtonCallback(
|
|||||||
if (self.io.terminal.flags.mouse_event != .none) report: {
|
if (self.io.terminal.flags.mouse_event != .none) report: {
|
||||||
// If we have shift-pressed and we aren't allowed to capture it,
|
// If we have shift-pressed and we aren't allowed to capture it,
|
||||||
// then we do not do a mouse report.
|
// then we do not do a mouse report.
|
||||||
if (mods.shift and button == .left and !shift_capture) break :report;
|
if (mods.shift and !shift_capture) break :report;
|
||||||
|
|
||||||
// In any other mouse button scenario without shift pressed we
|
// In any other mouse button scenario without shift pressed we
|
||||||
// clear the selection since the underlying application can handle
|
// clear the selection since the underlying application can handle
|
||||||
|
Reference in New Issue
Block a user