From 67b38687001805754d48140acda773b2a8b19a84 Mon Sep 17 00:00:00 2001 From: Erik Kundt Date: Fri, 23 Feb 2024 21:39:07 +0100 Subject: [PATCH] bin: Quit with Ctrl-C --- bin/commands/inbox/flux/select/ui.rs | 2 +- bin/commands/issue/flux/select/ui.rs | 2 +- bin/commands/patch/flux/select/ui.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/commands/inbox/flux/select/ui.rs b/bin/commands/inbox/flux/select/ui.rs index 54f6ac49..1deee260 100644 --- a/bin/commands/inbox/flux/select/ui.rs +++ b/bin/commands/inbox/flux/select/ui.rs @@ -78,7 +78,7 @@ impl Widget for ListPage { fn handle_key_event(&mut self, key: termion::event::Key) { match key { - Key::Char('q') => { + Key::Char('q') | Key::Ctrl('c') => { let _ = self.action_tx.send(Action::Exit { selection: None }); } Key::Char('\n') => { diff --git a/bin/commands/issue/flux/select/ui.rs b/bin/commands/issue/flux/select/ui.rs index 51c5f0c1..b790a2bf 100644 --- a/bin/commands/issue/flux/select/ui.rs +++ b/bin/commands/issue/flux/select/ui.rs @@ -82,7 +82,7 @@ impl Widget for ListPage { fn handle_key_event(&mut self, key: termion::event::Key) { match key { - Key::Char('q') => { + Key::Char('q') | Key::Ctrl('c') => { let _ = self.action_tx.send(Action::Exit { selection: None }); } Key::Char('\n') => { diff --git a/bin/commands/patch/flux/select/ui.rs b/bin/commands/patch/flux/select/ui.rs index 19789eea..62e69d8b 100644 --- a/bin/commands/patch/flux/select/ui.rs +++ b/bin/commands/patch/flux/select/ui.rs @@ -82,7 +82,7 @@ impl Widget for ListPage { fn handle_key_event(&mut self, key: termion::event::Key) { match key { - Key::Char('q') => { + Key::Char('q') | Key::Ctrl('c') => { let _ = self.action_tx.send(Action::Exit { selection: None }); } Key::Char('\n') => {