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:
Mitchell Hashimoto
2024-07-01 18:43:28 -07:00
committed by GitHub

View File

@ -2240,7 +2240,7 @@ pub fn mouseButtonCallback(
if (self.io.terminal.flags.mouse_event != .none) report: {
// If we have shift-pressed and we aren't allowed to capture it,
// 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
// clear the selection since the underlying application can handle