From 3462b0676dea842ca2cdcf58552efd0b3687d5c4 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 1 Jul 2024 18:42:32 -0700 Subject: [PATCH] core: mouse shift escape applies to all buttons, not just left Fixes #1905 --- src/Surface.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Surface.zig b/src/Surface.zig index 6c8d0edb4..bb90841f8 100644 --- a/src/Surface.zig +++ b/src/Surface.zig @@ -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