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

@ -520,6 +520,14 @@ func _validate_page() -> void:
await process_frame
assert(index_body.visible)
assert(not initial_detail_body.visible)
page.deactivate()
page.activate()
page.reset_controller_zone()
for _frame: int in 2:
await process_frame
var index_search := page.get("_index_search") as LineEdit
assert(index_search.focus_mode == Control.FOCUS_ALL)
assert(root.gui_get_focus_owner() == index_search)
assert((page.get("_index_option_buttons") as Dictionary).size() == 10)
_validate_index_content_bounds(page)
page.call(