summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Cargo.toml2
-rw-r--r--src/bin/client/repl.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/Cargo.toml b/Cargo.toml
index beaaf02..7c4b374 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
1[package] 1[package]
2name = "zagan-bet" 2name = "zagan-bet"
3version = "0.1.0" 3version = "0.2.0"
4edition = "2024" 4edition = "2024"
5 5
6[dependencies] 6[dependencies]
diff --git a/src/bin/client/repl.rs b/src/bin/client/repl.rs
index c7e3b9d..40b267e 100644
--- a/src/bin/client/repl.rs
+++ b/src/bin/client/repl.rs
@@ -72,7 +72,7 @@ impl ClientState {
72 } 72 }
73 73
74 match key_code { 74 match key_code {
75 KeyCode::Char('q') => { 75 KeyCode::Esc | KeyCode::Char('q') => {
76 self.exit_game_mode(); 76 self.exit_game_mode();
77 println!("\nGame exited."); 77 println!("\nGame exited.");
78 return true; 78 return true;
@@ -132,7 +132,7 @@ impl ClientState {
132 } 132 }
133 return true; 133 return true;
134 } 134 }
135 _ => return false, 135 _ => return true, // Lock into game mode: ignore unknown keys
136 } 136 }
137 } 137 }
138 138