Radish alpha
r
Radicle terminal user interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
inbox: Exit on ESC
Erik Kundt committed 2 years ago
commit 129f7054cb722fb331ec7c11d99256cf15021687
parent d6d5e4e8991d4a8ca8e4c727b3908ba9cddebb77
1 file changed +2 -3
modified bin/commands/inbox/flux/select/ui.rs
@@ -82,7 +82,7 @@ impl Widget<InboxState, Action> for ListPage {

    fn handle_key_event(&mut self, key: termion::event::Key) {
        match key {
-
            Key::Char('q') | Key::Ctrl('c') => {
+
            Key::Esc | Key::Ctrl('c') => {
                let _ = self.action_tx.send(Action::Exit { selection: None });
            }
            Key::Char('\n') => {
@@ -125,11 +125,10 @@ impl Render<()> for ListPage {
        let layout = tui::flux::ui::layout::default_page(area, 0u16, 1u16);

        let shortcuts = match self.props.mode {
-
            Mode::Id => vec![Shortcut::new("enter", "select"), Shortcut::new("q", "quit")],
+
            Mode::Id => vec![Shortcut::new("enter", "select")],
            Mode::Operation => vec![
                Shortcut::new("enter", "show"),
                Shortcut::new("c", "clear"),
-
                Shortcut::new("q", "quit"),
            ],
        };