浏览代码

Merge pull request #84539 from synalice/issue-84433

Fix pressing Enter being ignored in "Create Shader" dialogue
Yuri Sizov 1 年之前
父节点
当前提交
30bae5b782
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      editor/shader_create_dialog.cpp

+ 1 - 0
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);