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

launcher: allow CTRL-G to cancel

refs: https://github.com/wez/wezterm/issues/1977
This commit is contained in:
Wez Furlong 2022-05-12 14:26:24 -07:00
parent 64921bf8a1
commit 97f0bd16f2
2 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,7 @@ As features stabilize some brief notes about them will accumulate here.
* Copy Mode: key assignments are [now configurable](copymode.md#configurable-key-assignments) [#993](https://github.com/wez/wezterm/issues/993) * Copy Mode: key assignments are [now configurable](copymode.md#configurable-key-assignments) [#993](https://github.com/wez/wezterm/issues/993)
* Search Mode: key assignments are [now configurable](scrollback.md#configurable-key-assignments) [#993](https://github.com/wez/wezterm/issues/993) * Search Mode: key assignments are [now configurable](scrollback.md#configurable-key-assignments) [#993](https://github.com/wez/wezterm/issues/993)
* Copy Mode and Search Mode can be toggled and remember search results and cursor positioning, making it easier to locate and select text without using the mouse [#1592](https://github.com/wez/wezterm/issues/1592) * Copy Mode and Search Mode can be toggled and remember search results and cursor positioning, making it easier to locate and select text without using the mouse [#1592](https://github.com/wez/wezterm/issues/1592)
* In the Launcher Menu, you may now use `CTRL-G` to cancel/exit the launcher [#1977](https://github.com/wez/wezterm/issues/1977)
#### Updated #### Updated
* Bundled harfbuzz to 4.2.1 * Bundled harfbuzz to 4.2.1

View File

@ -495,6 +495,10 @@ impl LauncherState {
self.move_down(); self.move_down();
} }
InputEvent::Key(KeyEvent { InputEvent::Key(KeyEvent {
key: KeyCode::Char('G'),
modifiers: Modifiers::CTRL,
})
| InputEvent::Key(KeyEvent {
key: KeyCode::Escape, key: KeyCode::Escape,
.. ..
}) => { }) => {