summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tui/app.rs2
-rw-r--r--src/tui/views.rs3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/tui/app.rs b/src/tui/app.rs
index accb1de..a4bb03e 100644
--- a/src/tui/app.rs
+++ b/src/tui/app.rs
@@ -156,7 +156,7 @@ pub fn help() -> Dialog {
**G**: Scroll To Bottom
## Misc
-**ZZ, Ctrl<c>**: Exit
+**q, ZZ, Ctrl<c>**: Exit
**?**: Toggle this help menu
"###;
Dialog::around(
diff --git a/src/tui/views.rs b/src/tui/views.rs
index f191830..a7d3885 100644
--- a/src/tui/views.rs
+++ b/src/tui/views.rs
@@ -538,6 +538,9 @@ impl<T: View> ViewWrapper for VimBindingsView<T> {
_ => self.last_event = None,
}
match event {
+ Event::Char('q') => {
+ return EventResult::with_cb(|s| s.quit());
+ }
Event::Char('h') => {
return self.view.on_event(Event::Key(Key::Left));
}