mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 21:51:22 +00:00 
			
		
		
		
	Documentation search fixes
Updates rich_text_label so that the built-in documentation can be searched Previously, it would only find the first result and would not select other results Renames "_entered" functions to "_submitted"
This commit is contained in:
		
							parent
							
								
									48fe9c9794
								
							
						
					
					
						commit
						8ab13f8ace
					
				
					 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
	
	 Gregory Basile
						Gregory Basile