summaryrefslogtreecommitdiff
path: root/tools/editor/editor_layout_dialog.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2015-12-14 14:26:25 +0100
committerRémi Verschelde <remi@verschelde.fr>2015-12-14 14:26:25 +0100
commitbfaa179e7088d9d6f4cf289e1915eec12c6b3b2a (patch)
tree5e6f63b3046b52027e330a441a85665d4ba8403a /tools/editor/editor_layout_dialog.cpp
parent4713bcccf3de5f8e0f577f29a67f38bfb8a99b57 (diff)
parentd558ced434dffe3db7240c28afe8ad3afb15ea11 (diff)
Merge pull request #3074 from neikeq/editor_layouts_patch
Editor layout dialog: name field grabs focus on popup
Diffstat (limited to 'tools/editor/editor_layout_dialog.cpp')
-rw-r--r--tools/editor/editor_layout_dialog.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/editor/editor_layout_dialog.cpp b/tools/editor/editor_layout_dialog.cpp
index e37f263c0c..d3a60f90dd 100644
--- a/tools/editor/editor_layout_dialog.cpp
+++ b/tools/editor/editor_layout_dialog.cpp
@@ -1,5 +1,5 @@
/*************************************************************************/
-/* editor_node.cpp */
+/* editor_layout_dialog.cpp */
/*************************************************************************/
/* This file is part of: */
/* GODOT ENGINE */
@@ -35,6 +35,12 @@ void EditorLayoutDialog::clear_layout_name() {
layout_name->clear();
}
+void EditorLayoutDialog::_post_popup() {
+
+ ConfirmationDialog::_post_popup();
+ layout_name->grab_focus();
+}
+
void EditorLayoutDialog::ok_pressed() {
if (layout_name->get_text()!="") {