mirror of
https://github.com/wez/wezterm.git
synced 2024-12-22 12:51:31 +03:00
launcher: process ESC and CTRL-G ahead of feeding into filter
refs: https://github.com/wez/wezterm/issues/1977
This commit is contained in:
parent
95b3770434
commit
3018a8f32e
@ -475,6 +475,16 @@ impl LauncherState {
|
||||
}
|
||||
self.update_filter();
|
||||
}
|
||||
InputEvent::Key(KeyEvent {
|
||||
key: KeyCode::Char('G'),
|
||||
modifiers: Modifiers::CTRL,
|
||||
})
|
||||
| InputEvent::Key(KeyEvent {
|
||||
key: KeyCode::Escape,
|
||||
..
|
||||
}) => {
|
||||
break;
|
||||
}
|
||||
InputEvent::Key(KeyEvent {
|
||||
key: KeyCode::Char(c),
|
||||
..
|
||||
@ -494,16 +504,6 @@ impl LauncherState {
|
||||
}) => {
|
||||
self.move_down();
|
||||
}
|
||||
InputEvent::Key(KeyEvent {
|
||||
key: KeyCode::Char('G'),
|
||||
modifiers: Modifiers::CTRL,
|
||||
})
|
||||
| InputEvent::Key(KeyEvent {
|
||||
key: KeyCode::Escape,
|
||||
..
|
||||
}) => {
|
||||
break;
|
||||
}
|
||||
InputEvent::Mouse(MouseEvent {
|
||||
y, mouse_buttons, ..
|
||||
}) if mouse_buttons.contains(MouseButtons::VERT_WHEEL) => {
|
||||
|
Loading…
Reference in New Issue
Block a user