File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ func _on_NextButton_pressed():
34
34
func _on_ChooseDir_pressed ():
35
35
RetroHubUI .request_folder_load (n_path .text )
36
36
set_path (await RetroHubUI .path_selected )
37
+ get_window ().grab_focus ()
37
38
38
39
func set_path (path : String ):
39
40
if not path .is_empty ():
@@ -60,6 +61,7 @@ func query_next_btn():
60
61
func _on_media_choose_dir_pressed ():
61
62
RetroHubUI .request_folder_load (n_media_path .text )
62
63
set_media_path (await RetroHubUI .path_selected )
64
+ get_window ().grab_focus ()
63
65
64
66
func set_media_path (path : String ):
65
67
if not path .is_empty ():
Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ layout_mode = 2
58
58
size_flags_horizontal = 3
59
59
text = "Store downloaded media in the configuration directory?"
60
60
61
+ [node name ="AccessibilityFocus" type ="Node" parent ="VBoxContainer/HBoxContainer2/Label" ]
62
+ script = ExtResource ("3" )
63
+
61
64
[node name ="UseCustomMedia" type ="CheckButton" parent ="VBoxContainer/HBoxContainer2" ]
62
65
unique_name_in_owner = true
63
66
layout_mode = 2
@@ -77,6 +80,9 @@ layout_mode = 2
77
80
layout_mode = 2
78
81
text = "Game media location"
79
82
83
+ [node name ="AccessibilityFocus" type ="Node" parent ="VBoxContainer/CustomMediaContainer/VBoxContainer/Label" ]
84
+ script = ExtResource ("3" )
85
+
80
86
[node name ="HBoxContainer3" type ="HBoxContainer" parent ="VBoxContainer/CustomMediaContainer/VBoxContainer" ]
81
87
layout_mode = 2
82
88
theme_override_constants/separation = 15
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ func _on_popup_selected(file: String):
100
100
emit_signal ("path_selected" , file )
101
101
102
102
func _on_visibility_changed ():
103
- if not visible :
103
+ if not _n_filesystem_popup . visible :
104
104
emit_signal ("path_selected" , "" )
105
105
106
106
func filesystem_filters (filters : Array = []):
You can’t perform that action at this time.
0 commit comments