mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Merge pull request #49258 from megalobyte/editor-fix
Fixes for documentation search
This commit is contained in:
commit
bb4c464fec
50 changed files with 223 additions and 137 deletions
|
|
@ -539,7 +539,7 @@ void FindReplaceBar::_search_text_changed(const String &p_text) {
|
|||
search_current();
|
||||
}
|
||||
|
||||
void FindReplaceBar::_search_text_entered(const String &p_text) {
|
||||
void FindReplaceBar::_search_text_submitted(const String &p_text) {
|
||||
if (Input::get_singleton()->is_key_pressed(KEY_SHIFT)) {
|
||||
search_prev();
|
||||
} else {
|
||||
|
|
@ -547,7 +547,7 @@ void FindReplaceBar::_search_text_entered(const String &p_text) {
|
|||
}
|
||||
}
|
||||
|
||||
void FindReplaceBar::_replace_text_entered(const String &p_text) {
|
||||
void FindReplaceBar::_replace_text_submitted(const String &p_text) {
|
||||
if (selection_only->is_pressed() && text_editor->is_selection_active()) {
|
||||
_replace_all();
|
||||
_hide_bar();
|
||||
|
|
@ -643,7 +643,7 @@ FindReplaceBar::FindReplaceBar() {
|
|||
vbc_lineedit->add_child(search_text);
|
||||
search_text->set_custom_minimum_size(Size2(100 * EDSCALE, 0));
|
||||
search_text->connect("text_changed", callable_mp(this, &FindReplaceBar::_search_text_changed));
|
||||
search_text->connect("text_entered", callable_mp(this, &FindReplaceBar::_search_text_entered));
|
||||
search_text->connect("text_submitted", callable_mp(this, &FindReplaceBar::_search_text_submitted));
|
||||
|
||||
matches_label = memnew(Label);
|
||||
hbc_button_search->add_child(matches_label);
|
||||
|
|
@ -677,7 +677,7 @@ FindReplaceBar::FindReplaceBar() {
|
|||
replace_text = memnew(LineEdit);
|
||||
vbc_lineedit->add_child(replace_text);
|
||||
replace_text->set_custom_minimum_size(Size2(100 * EDSCALE, 0));
|
||||
replace_text->connect("text_entered", callable_mp(this, &FindReplaceBar::_replace_text_entered));
|
||||
replace_text->connect("text_submitted", callable_mp(this, &FindReplaceBar::_replace_text_submitted));
|
||||
|
||||
replace = memnew(Button);
|
||||
hbc_button_replace->add_child(replace);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue