summaryrefslogtreecommitdiff
path: root/tools/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2016-10-09 14:41:44 +0200
committerGitHub <noreply@github.com>2016-10-09 14:41:44 +0200
commit8711523c9867ca06e68cf53e937b21738876fef7 (patch)
tree1954a0c6e055026464bb87096a720e04be19482d /tools/editor
parent6f9023c9a609e6f3a8370853266ab06e5f910acd (diff)
parent36d2dd5318f5a021d6956a772cd7fc288e222253 (diff)
Merge pull request #6722 from Hinsbart/projman_focus
Project manager: grab focus on ok button after path selection.
Diffstat (limited to 'tools/editor')
-rw-r--r--tools/editor/project_manager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/editor/project_manager.cpp b/tools/editor/project_manager.cpp
index 18a4e845a0..1c99982155 100644
--- a/tools/editor/project_manager.cpp
+++ b/tools/editor/project_manager.cpp
@@ -142,6 +142,7 @@ private:
String sp = p.simplify_path();
project_path->set_text(sp);
_path_text_changed(p);
+ get_ok()->call_deferred("grab_focus");
}
void _path_selected(const String& p_path) {
@@ -150,7 +151,7 @@ private:
String sp = p.simplify_path();
project_path->set_text(sp);
_path_text_changed(p);
-
+ get_ok()->call_deferred("grab_focus");
}
void _browse_path() {