diff options
Diffstat (limited to '')
| -rw-r--r-- | src/bin/client/repl.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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 | ||
