mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	more fixes
fix ctrl-a for some cases, mentioned in #1704 fix toggling visibility not updating, fixes #1923
This commit is contained in:
		
							parent
							
								
									9f686563d0
								
							
						
					
					
						commit
						fec6aaffd8
					
				
					 2 changed files with 9 additions and 2 deletions
				
			
		|  | @ -288,6 +288,7 @@ void CanvasItem::show() { | ||||||
| 	if (is_visible()) { | 	if (is_visible()) { | ||||||
| 		_propagate_visibility_changed(true); | 		_propagate_visibility_changed(true); | ||||||
| 	} | 	} | ||||||
|  | 	_change_notify("visibility/visible"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | @ -305,6 +306,7 @@ void CanvasItem::hide() { | ||||||
| 	if (propagate) | 	if (propagate) | ||||||
| 		_propagate_visibility_changed(false); | 		_propagate_visibility_changed(false); | ||||||
| 
 | 
 | ||||||
|  | 	_change_notify("visibility/visible"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1893,7 +1893,7 @@ void TextEdit::_input_event(const InputEvent& p_input_event) { | ||||||
| 					selection.from_line=0; | 					selection.from_line=0; | ||||||
| 					selection.from_column=0; | 					selection.from_column=0; | ||||||
| 					selection.to_line=text.size()-1; | 					selection.to_line=text.size()-1; | ||||||
| 					selection.to_column=text[selection.to_line].size(); | 					selection.to_column=text[selection.to_line].length(); | ||||||
| 					selection.selecting_mode=Selection::MODE_NONE; | 					selection.selecting_mode=Selection::MODE_NONE; | ||||||
| 					update(); | 					update(); | ||||||
| 					 | 					 | ||||||
|  | @ -2778,6 +2778,11 @@ void TextEdit::copy() { | ||||||
| 	if (!selection.active) | 	if (!selection.active) | ||||||
| 		return; | 		return; | ||||||
| 	 | 	 | ||||||
|  | 	print_line("from line: "+itos(selection.from_line)); | ||||||
|  | 	print_line("from column: "+itos(selection.from_column)); | ||||||
|  | 	print_line("to line: "+itos(selection.to_line)); | ||||||
|  | 	print_line("to column: "+itos(selection.to_column)); | ||||||
|  | 
 | ||||||
| 	String clipboard = _base_get_text(selection.from_line,selection.from_column,selection.to_line,selection.to_column); | 	String clipboard = _base_get_text(selection.from_line,selection.from_column,selection.to_line,selection.to_column); | ||||||
| 	OS::get_singleton()->set_clipboard(clipboard); | 	OS::get_singleton()->set_clipboard(clipboard); | ||||||
| 	 | 	 | ||||||
|  | @ -2809,7 +2814,7 @@ void TextEdit::select_all() { | ||||||
| 	selection.from_line=0; | 	selection.from_line=0; | ||||||
| 	selection.from_column=0; | 	selection.from_column=0; | ||||||
| 	selection.to_line=text.size()-1; | 	selection.to_line=text.size()-1; | ||||||
| 	selection.to_column=text[selection.to_line].size(); | 	selection.to_column=text[selection.to_line].length(); | ||||||
| 	selection.selecting_mode=Selection::MODE_NONE; | 	selection.selecting_mode=Selection::MODE_NONE; | ||||||
| 	update(); | 	update(); | ||||||
| 	 | 	 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Juan Linietsky
						Juan Linietsky