瀏覽代碼

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 ^^
Andreas Haas 9 年之前
父節點
當前提交
36d2dd5318
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      tools/editor/project_manager.cpp

+ 2 - 1
tools/editor/project_manager.cpp

@@ -142,6 +142,7 @@ private:
 		String sp = p.simplify_path();
 		String sp = p.simplify_path();
 		project_path->set_text(sp);
 		project_path->set_text(sp);
 		_path_text_changed(p);
 		_path_text_changed(p);
+		get_ok()->call_deferred("grab_focus");
 	}
 	}
 
 
 	void _path_selected(const String& p_path) {
 	void _path_selected(const String& p_path) {
@@ -150,7 +151,7 @@ private:
 		String sp = p.simplify_path();
 		String sp = p.simplify_path();
 		project_path->set_text(sp);
 		project_path->set_text(sp);
 		_path_text_changed(p);
 		_path_text_changed(p);
-
+		get_ok()->call_deferred("grab_focus");
 	}
 	}
 
 
 	void _browse_path() {
 	void _browse_path() {