mirror of
https://github.com/godotengine/godot.git
synced 2025-01-18 20:40:57 +08:00
Remember last help search
This commit is contained in:
parent
c731dd1ba6
commit
c591293718
@ -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) {
|
||||
|
||||
|
@ -68,7 +68,8 @@ protected:
|
||||
static void _bind_methods();
|
||||
public:
|
||||
|
||||
void popup(const String& p_term="");
|
||||
void popup();
|
||||
void popup(const String& p_term);
|
||||
|
||||
EditorHelpSearch();
|
||||
};
|
||||
|
@ -881,7 +881,7 @@ void ScriptEditor::_menu_option(int p_option) {
|
||||
} break;
|
||||
case SEARCH_HELP: {
|
||||
|
||||
help_search_dialog->popup("current");
|
||||
help_search_dialog->popup();
|
||||
} break;
|
||||
case SEARCH_CLASSES: {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user