Restore catalog search focus on reopen (#131)

This commit is contained in:
Alexander Sellite 2026-09-02 09:51:53 -04:00
parent 44ccd1da75
commit 26b5b5d62f
2 changed files with 14 additions and 1 deletions

View file

@ -358,7 +358,12 @@ func focus_initial() -> void:
func reset_controller_zone() -> void:
_controller_zone = ControllerZone.TABS
# The catalog index stays open across player-menu closes. Restore its text
# entry zone as well, otherwise reopening the menu disables the visible
# search field until the index is manually closed and opened again.
_controller_zone = (
ControllerZone.INDEX if _index_open else ControllerZone.TABS
)
set_interactive(_interactive)
call_deferred("focus_initial")