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

palette: add CTRL-p / CTRL-n key bindings to move up/down

This commit is contained in:
Antoine Busch 2023-02-08 18:12:41 +11:00 committed by Wez Furlong
parent 1596934132
commit 70d2829b79

View File

@ -443,10 +443,10 @@ impl Modal for CommandPalette {
(KeyCode::Escape, KeyModifiers::NONE) | (KeyCode::Char('g'), KeyModifiers::CTRL) => { (KeyCode::Escape, KeyModifiers::NONE) | (KeyCode::Char('g'), KeyModifiers::CTRL) => {
term_window.cancel_modal(); term_window.cancel_modal();
} }
(KeyCode::UpArrow, KeyModifiers::NONE) => { (KeyCode::UpArrow, KeyModifiers::NONE) | (KeyCode::Char('p'), KeyModifiers::CTRL) => {
self.move_up(); self.move_up();
} }
(KeyCode::DownArrow, KeyModifiers::NONE) => { (KeyCode::DownArrow, KeyModifiers::NONE) | (KeyCode::Char('n'), KeyModifiers::CTRL) => {
self.move_down(); self.move_down();
} }
(KeyCode::Char(c), KeyModifiers::NONE) | (KeyCode::Char(c), KeyModifiers::SHIFT) => { (KeyCode::Char(c), KeyModifiers::NONE) | (KeyCode::Char(c), KeyModifiers::SHIFT) => {