fix: allow context menu when shift is being pressed

This commit is contained in:
therealmate 2025-11-22 14:45:40 +01:00 • committed by Jacob Kauffmann
parent 8fd99ec40e
commit e053db3bf9

View file

@ -3312,7 +3312,6 @@ impl Tab {
} }
Message::ContextMenu(point_opt, _) => { Message::ContextMenu(point_opt, _) => {
self.edit_location = None; self.edit_location = None;
if point_opt.is_none() || !mod_shift {
self.context_menu = point_opt; self.context_menu = point_opt;
self.location_context_menu_index = None; self.location_context_menu_index = None;
@ -3325,7 +3324,6 @@ impl Tab {
} }
} }
} }
}
Message::LocationContextMenuPoint(point_opt) => { Message::LocationContextMenuPoint(point_opt) => {
self.context_menu = None; self.context_menu = None;
self.location_context_menu_point = point_opt; self.location_context_menu_point = point_opt;