From e053db3bf92d4a28ad4a22516eda47f189fc0b8c Mon Sep 17 00:00:00 2001 From: therealmate <61843503+therealmate@users.noreply.github.com> Date: Sat, 22 Nov 2025 14:45:40 +0100 Subject: [PATCH] fix: allow context menu when shift is being pressed --- src/tab.rs | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/tab.rs b/src/tab.rs index 6de2436..b643ba2 100644 --- a/src/tab.rs +++ b/src/tab.rs @@ -3312,16 +3312,14 @@ impl Tab { } Message::ContextMenu(point_opt, _) => { self.edit_location = None; - if point_opt.is_none() || !mod_shift { - self.context_menu = point_opt; - self.location_context_menu_index = None; + self.context_menu = point_opt; + self.location_context_menu_index = None; - //TODO: hack for clearing selecting when right clicking empty space - if self.context_menu.is_some() && self.last_right_click.take().is_none() { - if let Some(ref mut items) = self.items_opt { - for item in items.iter_mut() { - item.selected = false; - } + //TODO: hack for clearing selecting when right clicking empty space + if self.context_menu.is_some() && self.last_right_click.take().is_none() { + if let Some(ref mut items) = self.items_opt { + for item in items.iter_mut() { + item.selected = false; } } }