Skip to content

Commit

Permalink
terminal: Remove Esc to quit because it's now taken by in-game menus.
Browse files Browse the repository at this point in the history
  • Loading branch information
kpreid committed Dec 16, 2023
1 parent 38d60c5 commit 4285cc2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
15 changes: 5 additions & 10 deletions all-is-cubes-desktop/src/terminal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,16 +185,11 @@ fn run(
}
let options = &mut dsession.renderer.options;
match event {
Event::Key(
KeyEvent {
code: KeyCode::Esc, ..
}
| KeyEvent {
code: KeyCode::Char('c' | 'd'),
modifiers: KeyModifiers::CONTROL,
..
},
) => {
Event::Key(KeyEvent {
code: KeyCode::Char('c' | 'd'),
modifiers: KeyModifiers::CONTROL,
..
}) => {
return Ok(());
}
Event::Key(KeyEvent {
Expand Down
2 changes: 1 addition & 1 deletion all-is-cubes-desktop/src/terminal/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ impl TerminalState {
const HELP_TEXT: &str = "\
Move: WS AD EC Turn: ←→ ↑↓\n\
Term color: N Term chars: M\n\
Quit: Esc, ^C, or ^D";
Quit: ^C, or ^D";

let [viewport_rect_tmp, toolbar_rect, gfx_info_rect, cursor_and_help_rect] =
*Layout::default()
Expand Down

0 comments on commit 4285cc2

Please sign in to comment.