forked from woofmeow/straywild
fix: stabilize controller menu navigation
This commit is contained in:
parent
5df8b2e7cc
commit
a8be597d27
32 changed files with 910 additions and 2376 deletions
|
|
@ -341,6 +341,13 @@ func _preserve_native_text_focus(control: Control) -> void:
|
|||
|
||||
|
||||
func _can_edit(control: Control) -> bool:
|
||||
if (
|
||||
control == null
|
||||
or not is_instance_valid(control)
|
||||
or not control.is_inside_tree()
|
||||
or not control.is_visible_in_tree()
|
||||
):
|
||||
return false
|
||||
if control is LineEdit:
|
||||
return (control as LineEdit).editable
|
||||
if control is TextEdit:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue