paneselect: ctrl-g as emacs-y way to close it

This commit is contained in:
Wez Furlong committed 2022-05-24 18:39:22 -07:00
1 parent 478b0df58b
commit c34e9b45d4
1 file changed
+1 -1
+1 -1
View File
@@ -165,7 +165,7 @@ impl Modal for PaneSelector {
term_window: &mut TermWindow,
) -> anyhow::Result<()> {
match (key, mods) {
(KeyCode::Escape, KeyModifiers::NONE) => {
(KeyCode::Escape, KeyModifiers::NONE) | (KeyCode::Char('g'), KeyModifiers::CTRL) => {
term_window.cancel_modal();
}
(KeyCode::Char(c), KeyModifiers::NONE) | (KeyCode::Char(c), KeyModifiers::SHIFT) => {