Skip to content

Commit 9b9be4e

Browse files
committed
Fix quit shortcut in credentials form
1 parent 4c53fb4 commit 9b9be4e

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "reddix"
3-
version = "0.1.8"
3+
version = "0.1.9"
44
edition = "2021"
55
license = "MIT"
66
description = "Reddix - Reddit, refined for the terminal."

src/ui.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2863,7 +2863,6 @@ impl Model {
28632863
fn handle_menu_credentials_key(&mut self, code: KeyCode) -> Result<bool> {
28642864
let mut dirty = false;
28652865
match code {
2866-
KeyCode::Char('q') => return Ok(true),
28672866
KeyCode::Esc => {
28682867
self.menu_screen = MenuScreen::Accounts;
28692868
if let Err(err) = self.refresh_menu_accounts() {
@@ -2954,6 +2953,7 @@ impl Model {
29542953
}
29552954
} else {
29562955
match ch {
2956+
'q' | 'Q' => return Ok(true),
29572957
'm' | 'M' => {
29582958
self.menu_visible = false;
29592959
self.status_message = "Guided menu closed.".to_string();

0 commit comments

Comments
 (0)