diff --git a/src/demo-main.tscn b/src/demo-main.tscn index 83aef09..4e0e231 100644 --- a/src/demo-main.tscn +++ b/src/demo-main.tscn @@ -128,15 +128,21 @@ func show_accessibility_settings(): %Accessibility.is_active = true await %Accessibility.leave_stage %AccessibilityContainer.hide() + if in_game: + %ResumeButton.grab_focus() + else: + $Menu/VBoxContainer2/PressStart.grab_focus() func toggle_pause_menu(): if not get_tree().paused: get_tree().paused = true %PauseContainer.show() + %ResumeButton.grab_focus() Input.mouse_mode = Input.MOUSE_MODE_VISIBLE else: get_tree().paused = false %PauseContainer.hide() + %ResumeButton.grab_focus() if State.stage_list[0] is Player: Input.mouse_mode = Input.MOUSE_MODE_CAPTURED