diff options
author | Andreas Haas <liu.gam3@gmail.com> | 2016-10-06 12:41:38 +0200 |
---|---|---|
committer | Andreas Haas <liu.gam3@gmail.com> | 2016-10-06 12:48:02 +0200 |
commit | 36d2dd5318f5a021d6956a772cd7fc288e222253 (patch) | |
tree | e1655b72195738c34fefc16f1506fcfd67cfe794 /tools | |
parent | 1f9e16119f2b17fa507bdee8529459ed91f27b8c (diff) |
Project manager: grab focus on ok button after path selection.
Slight usability improvement: grabs focus on the Import/Create button after engine.cfg/path selection.
So then I can just press enter to create the project ^^
Diffstat (limited to 'tools')
-rw-r--r-- | tools/editor/project_manager.cpp | 3 |
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() { |