1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-27 15:37:29 +03:00

try again with squashing out caps+numlock

refs: https://github.com/wez/wezterm/issues/3514
This commit is contained in:
Wez Furlong 2023-04-13 09:01:50 -07:00
parent 0abc28dae0
commit 9b1321fac1
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387

View File

@ -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();