mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +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
				
			
		|  | @ -602,7 +602,7 @@ void ScriptCreateDialog::_path_changed(const String &p_path) { | |||
| 	_update_dialog(); | ||||
| } | ||||
| 
 | ||||
| void ScriptCreateDialog::_path_entered(const String &p_path) { | ||||
| void ScriptCreateDialog::_path_submitted(const String &p_path) { | ||||
| 	ok_pressed(); | ||||
| } | ||||
| 
 | ||||
|  | @ -731,13 +731,13 @@ void ScriptCreateDialog::_update_dialog() { | |||
| 
 | ||||
| 	get_ok_button()->set_disabled(!script_ok); | ||||
| 
 | ||||
| 	Callable entered_call = callable_mp(this, &ScriptCreateDialog::_path_entered); | ||||
| 	Callable entered_call = callable_mp(this, &ScriptCreateDialog::_path_submitted); | ||||
| 	if (script_ok) { | ||||
| 		if (!file_path->is_connected("text_entered", entered_call)) { | ||||
| 			file_path->connect("text_entered", entered_call); | ||||
| 		if (!file_path->is_connected("text_submitted", entered_call)) { | ||||
| 			file_path->connect("text_submitted", entered_call); | ||||
| 		} | ||||
| 	} else if (file_path->is_connected("text_entered", entered_call)) { | ||||
| 		file_path->disconnect("text_entered", entered_call); | ||||
| 	} else if (file_path->is_connected("text_submitted", entered_call)) { | ||||
| 		file_path->disconnect("text_submitted", entered_call); | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Gregory Basile
						Gregory Basile