From f12518da4d35d189689fccdd2b61e0136bb4f43f Mon Sep 17 00:00:00 2001 From: Xithrius Date: Tue, 25 Apr 2023 03:56:33 -0700 Subject: [PATCH] The help window can now be accessed --- src/ui/components/chat.rs | 1 + src/ui/components/dashboard.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/ui/components/chat.rs b/src/ui/components/chat.rs index 82d45f7..bbd3b14 100644 --- a/src/ui/components/chat.rs +++ b/src/ui/components/chat.rs @@ -317,6 +317,7 @@ impl Component for ChatWidget { Key::Ctrl('t') => self.filters.borrow_mut().toggle(), Key::Ctrl('r') => self.filters.borrow_mut().reverse(), Key::Char('S') => return Some(TerminalAction::SwitchState(State::Dashboard)), + Key::Char('?') => return Some(TerminalAction::SwitchState(State::Help)), Key::Char('q') => return Some(TerminalAction::Quit), Key::Esc => { if self.scroll_offset.get_offset() == 0 { diff --git a/src/ui/components/dashboard.rs b/src/ui/components/dashboard.rs index 1792cf9..5b7e5e8 100644 --- a/src/ui/components/dashboard.rs +++ b/src/ui/components/dashboard.rs @@ -245,6 +245,7 @@ impl Component for DashboardWidget { Key::Char('q') => return Some(TerminalAction::Quit), Key::Char('s') => self.channel_input.toggle_focus(), Key::Enter => return Some(TerminalAction::SwitchState(State::Normal)), + Key::Char('?') => return Some(TerminalAction::SwitchState(State::Help)), Key::Char(c) => { if let Some(selection) = c.to_digit(10) { let mut channels =