summaryrefslogtreecommitdiff
path: root/tools/editor/editor_help.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/editor/editor_help.cpp')
-rw-r--r--tools/editor/editor_help.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/tools/editor/editor_help.cpp b/tools/editor/editor_help.cpp
index 19e65f3844..a77d27d699 100644
--- a/tools/editor/editor_help.cpp
+++ b/tools/editor/editor_help.cpp
@@ -43,9 +43,16 @@ void EditorHelpSearch::popup(const String& p_term) {
if (p_term!="") {
search_box->set_text(p_term);
search_box->select_all();
- } else
+ _update_search();
+ //TreeItem *ti = search_options->select_single_item();
+ //if (!ti)
+ // return;
+ search_options->grab_focus();
+
+ } else {
search_box->clear();
- search_box->grab_focus();
+ search_box->grab_focus();
+ }
}
@@ -863,6 +870,8 @@ void EditorHelp::_goto_desc(const String& p_class,bool p_update_history,int p_vs
void EditorHelp::_request_help(const String& p_string) {
_goto_desc(p_string);
+ class_search->popup(p_string);
+
//100 palabras