From 9b1321fac11c2bbae87aadcb9b486ce12e5f1e18 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Thu, 13 Apr 2023 09:01:50 -0700 Subject: [PATCH] try again with squashing out caps+numlock refs: https://github.com/wez/wezterm/issues/3514 --- wezterm-gui/src/termwindow/mouseevent.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wezterm-gui/src/termwindow/mouseevent.rs b/wezterm-gui/src/termwindow/mouseevent.rs index d70c452b4..88735f236 100644 --- a/wezterm-gui/src/termwindow/mouseevent.rs +++ b/wezterm-gui/src/termwindow/mouseevent.rs @@ -59,13 +59,15 @@ impl super::TermWindow { } } - pub fn mouse_event_impl(&mut self, event: MouseEvent, context: &dyn WindowOps) { + pub fn mouse_event_impl(&mut self, mut event: MouseEvent, context: &dyn WindowOps) { log::trace!("{:?}", event); let pane = match self.get_active_pane_or_overlay() { Some(pane) => pane, None => return, }; + event.modifiers = event.modifiers.remove_keyboard_status_mods(); + self.current_mouse_event.replace(event.clone()); let border = self.get_os_border();