core: mouse shift escape applies to all buttons, not just left

Fixes #1905
This commit is contained in:
Mitchell Hashimoto
2024-07-01 18:42:32 -07:00
parent e54413c04b
commit 3462b0676d

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