diff options
author | neikeq <ignalfonsore@gmail.com> | 2015-11-24 22:33:26 +0100 |
---|---|---|
committer | neikeq <ignalfonsore@gmail.com> | 2015-11-24 22:33:26 +0100 |
commit | c591293718a3710f5d18a2d09a57974df38696cb (patch) | |
tree | 44fb4f3139658c3b58c40fbd8b78999b05d6f2a3 /tools/editor/editor_help.cpp | |
parent | c731dd1ba68604ff7e97915e2b9d3011e818ca03 (diff) |
Remember last help search
Diffstat (limited to 'tools/editor/editor_help.cpp')
-rw-r--r-- | tools/editor/editor_help.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/editor/editor_help.cpp b/tools/editor/editor_help.cpp index 808199e175..8fd99cc25a 100644 --- a/tools/editor/editor_help.cpp +++ b/tools/editor/editor_help.cpp @@ -36,6 +36,14 @@ #include "os/keyboard.h" +void EditorHelpSearch::popup() { + popup_centered_ratio(0.6); + if (search_box->get_text()!="") { + search_box->select_all(); + _update_search(); + } + search_box->grab_focus(); +} void EditorHelpSearch::popup(const String& p_term) { |