Restore catalog search focus on reopen (#131)
This commit is contained in:
parent
44ccd1da75
commit
26b5b5d62f
2 changed files with 14 additions and 1 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue