status bar display

This commit is contained in:
2026-06-21 12:32:09 -05:00
parent a45c5a0a68
commit 9b53552f4a
7 changed files with 126 additions and 9 deletions
+2
View File
@@ -94,6 +94,8 @@ pub(crate) fn handle_board_input(
KeyCode::Left => try_move_with_transition(game, ui, Direction::West),
KeyCode::Right => try_move_with_transition(game, ui, Direction::East),
KeyCode::Char('l') => ui.log.toggle(),
// Toggle the status sidebar (play-only: this handler is InputMode::Board).
KeyCode::Tab => ui.show_status = !ui.show_status,
KeyCode::PageUp if log_open => ui.log.scroll_by(-5, game.log.len()),
KeyCode::PageDown if log_open => ui.log.scroll_by(5, game.log.len()),
_ => {}