1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-01 00:35:46 +03:00

fix dismissing overlays with other mouse clicks

This commit is contained in:
Wez Furlong 2020-03-03 07:52:09 -08:00
parent 2debfcc624
commit 0bf67d7b69
2 changed files with 8 additions and 6 deletions

View File

@ -187,11 +187,12 @@ pub fn launcher(
if mouse_buttons == MouseButtons::LEFT {
launch(active_idx, &entries, size, mux_window_id, clipboard);
break;
} else if mouse_buttons != MouseButtons::NONE {
// Treat any other mouse button as cancel
break;
}
}
if mouse_buttons != MouseButtons::NONE {
// Treat any other mouse button as cancel
break;
}
}
InputEvent::Key(KeyEvent {
key: KeyCode::Enter,

View File

@ -127,11 +127,12 @@ pub fn tab_navigator(
if mouse_buttons == MouseButtons::LEFT {
select_tab_by_idx(active_tab_idx, mux_window_id, &tab_list);
break;
} else if mouse_buttons != MouseButtons::NONE {
// Treat any other mouse button as cancel
break;
}
}
if mouse_buttons != MouseButtons::NONE {
// Treat any other mouse button as cancel
break;
}
}
InputEvent::Key(KeyEvent {
key: KeyCode::Enter,