summaryrefslogtreecommitdiff
path: root/client/menu
diff options
context:
space:
mode:
Diffstat (limited to 'client/menu')
-rw-r--r--client/menu/character.tscn2
-rw-r--r--client/menu/communicate/chat/chat_open.tscn2
-rw-r--r--client/menu/menu.gd2
3 files changed, 3 insertions, 3 deletions
diff --git a/client/menu/character.tscn b/client/menu/character.tscn
index ce5cb4d5..b4f05fe2 100644
--- a/client/menu/character.tscn
+++ b/client/menu/character.tscn
@@ -85,7 +85,7 @@ layout_mode = 2
text = "c.settings.username"
horizontal_alignment = 1
-[node name="username" type="LineEdit" parent="VBoxContainer/top_panel/a" groups=["no_autoselect"]]
+[node name="username" type="LineEdit" parent="VBoxContainer/top_panel/a"]
layout_mode = 2
max_length = 32
diff --git a/client/menu/communicate/chat/chat_open.tscn b/client/menu/communicate/chat/chat_open.tscn
index 1bb2a6e6..f161f210 100644
--- a/client/menu/communicate/chat/chat_open.tscn
+++ b/client/menu/communicate/chat/chat_open.tscn
@@ -49,7 +49,7 @@ layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
-[node name="LineEdit" type="LineEdit" parent="PanelContainer/MarginContainer/VBoxContainer"]
+[node name="LineEdit" type="LineEdit" parent="PanelContainer/MarginContainer/VBoxContainer" groups=["autoselect"]]
layout_mode = 2
placeholder_text = "c.chat.write_message"
keep_editing_on_text_submit = true
diff --git a/client/menu/menu.gd b/client/menu/menu.gd
index f5b99d4f..b928118b 100644
--- a/client/menu/menu.gd
+++ b/client/menu/menu.gd
@@ -109,7 +109,7 @@ func focus_first(node: Node) -> bool:
focus_auto_changed = true
if node.is_in_group("no_auto_focus"):
return false
- if node is Button or node is LineEdit and not node.is_in_group("no_autoselect"):
+ if node is Button or node.is_in_group("autoselect"):
node.grab_focus()
print("Node %s (%s) was selected for focus" % [node.name, node])
return true