Skip to content

Commit

Permalink
Keybind attributes changed back to char type.
Browse files Browse the repository at this point in the history
Changing keybinds currently won't do anything.

Removed `users` keybind
  • Loading branch information
Xithrius committed Sep 12, 2021
1 parent 7df81bc commit 7944f20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
5 changes: 2 additions & 3 deletions default-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 1 addition & 3 deletions src/handlers/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
2 changes: 1 addition & 1 deletion src/terminal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub fn ui_driver(config: CompleteConfig, mut app: App, rx: Receiver<Data>) -> 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,
_ => {}
}
}
Expand Down

0 comments on commit 7944f20

Please sign in to comment.