The help window can now be accessed

This commit is contained in:
Xithrius 2023-04-25 03:56:33 -07:00
parent df3c6a568d
commit f12518da4d
No known key found for this signature in database
GPG Key ID: A867F27CC80B28C1
2 changed files with 2 additions and 0 deletions

View File

@ -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 {

View File

@ -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 =