bin: Quit with Ctrl-C

This commit is contained in:
Erik Kundt
2024-02-23 23:13:48 +01:00
parent ba1e389767
commit 67b3868700
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ impl Widget<InboxState, Action> 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') => {
+1 -1
View File
@@ -82,7 +82,7 @@ impl Widget<IssuesState, Action> 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') => {
+1 -1
View File
@@ -82,7 +82,7 @@ impl Widget<PatchesState, Action> 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') => {