diff --git a/default-config.toml b/default-config.toml index 03ddc2c9..fed215e7 100644 --- a/default-config.toml +++ b/default-config.toml @@ -26,12 +26,11 @@ username_alignment = "right" # The color palette for the username column: pastel (default), vibrant, warm, cool. palette = "pastel" +# Changing this currently doesn't do anything. [keybinds] # Chat table. chat = "c" # Keybinds table. -keybinds = "?" -# Users in chat. -users = "u" +help = "?" # Quit application (the ESC key will always be enabled). quit = "q" diff --git a/src/handlers/config.rs b/src/handlers/config.rs index 5fafff54..6d762e85 100644 --- a/src/handlers/config.rs +++ b/src/handlers/config.rs @@ -65,9 +65,7 @@ pub struct KeybindsConfig { /// Chat table. pub chat: String, /// Keybinds table. - pub keybinds: String, - /// Users in chat. - pub users: String, + pub help: String, /// Quit application (the ESC key will always be enabled). pub quit: String, } diff --git a/src/terminal.rs b/src/terminal.rs index ad90ccb3..f4238b56 100644 --- a/src/terminal.rs +++ b/src/terminal.rs @@ -76,7 +76,7 @@ pub fn ui_driver(config: CompleteConfig, mut app: App, rx: Receiver) -> Re match input { Key::Char('c') => app.state = State::Chat, Key::Char('?') => app.state = State::KeybindHelp, - Key::Esc => break, + Key::Char('q') | Key::Esc => break, _ => {} } }