summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2023-11-07 12:54:35 +0100
committerYuri Sizov <yuris@humnom.net>2023-11-07 12:54:35 +0100
commit30bae5b78272472407ef3457f55d8f5acadf0e81 (patch)
treeb11de0b43882a30830bdb8774bca57ba16550022
parentc3111c3e1a016dc967e11eafd53cf3ef963818aa (diff)
parentc0a18e17ba543b9c5d8615caced4bf287af820d0 (diff)
downloadredot-engine-30bae5b78272472407ef3457f55d8f5acadf0e81.tar.gz
Merge pull request #84539 from synalice/issue-84433
Fix pressing Enter being ignored in "Create Shader" dialogue
-rw-r--r--editor/shader_create_dialog.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/shader_create_dialog.cpp b/editor/shader_create_dialog.cpp
index 63e7077d3f..28776cbddc 100644
--- a/editor/shader_create_dialog.cpp
+++ b/editor/shader_create_dialog.cpp
@@ -647,6 +647,7 @@ ShaderCreateDialog::ShaderCreateDialog() {
file_path->connect("text_changed", callable_mp(this, &ShaderCreateDialog::_path_changed));
file_path->set_h_size_flags(Control::SIZE_EXPAND_FILL);
hb->add_child(file_path);
+ register_text_enter(file_path);
path_button = memnew(Button);
path_button->connect("pressed", callable_mp(this, &ShaderCreateDialog::_browse_path));
hb->add_child(path_button);