Keep utility pages within menu bounds
This commit is contained in:
parent
3dbfd74b6c
commit
1f3308d83b
3 changed files with 200 additions and 85 deletions
|
|
@ -3253,8 +3253,13 @@ func _finish_menu_entry(generation: int) -> void:
|
|||
_presentation_tween = null
|
||||
_transitioning = false
|
||||
_set_shell_interactive(true)
|
||||
# A queued TAB press closes the menu immediately after its entry animation.
|
||||
# Do that before scheduling deferred focus so the closing menu cannot leave a
|
||||
# stale grab_focus call targeting controls that have just been disabled.
|
||||
if _backpack_toggle_queued:
|
||||
_consume_queued_backpack_toggle()
|
||||
return
|
||||
_reset_controller_zone_for_section()
|
||||
_consume_queued_backpack_toggle()
|
||||
|
||||
|
||||
func _begin_menu_exit(reason: CloseReason, restore_controls: bool) -> void:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue