mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-29 06:20:28 +08:00
bin: Quit with Ctrl-C
This commit is contained in:
@@ -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') => {
|
||||
|
||||
@@ -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') => {
|
||||
|
||||
@@ -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') => {
|
||||
|
||||
Reference in New Issue
Block a user