Fix adding blocks to existing selection in wxGrid by Ctrl-drag.
Allow using Ctrl-dragging to add more blocks to the existing selection, similarly to how spreadsheets work. Closes #14141.
This commit is contained in:
		
				
					committed by
					
						 Vadim Zeitlin
						Vadim Zeitlin
					
				
			
			
				
	
			
			
			
						parent
						
							865dd8142a
						
					
				
				
					commit
					6c20d775c4
				
			| @@ -3941,7 +3941,9 @@ wxGrid::DoGridCellDrag(wxMouseEvent& event, | ||||
|         case wxMOD_CONTROL: | ||||
|             if ( m_selectedBlockCorner == wxGridNoCellCoords) | ||||
|                 m_selectedBlockCorner = coords; | ||||
|             UpdateBlockBeingSelected(m_selectedBlockCorner, coords); | ||||
|             if ( isFirstDrag ) | ||||
|                 SetGridCursor(coords); | ||||
|             UpdateBlockBeingSelected(m_currentCellCoords, coords); | ||||
|             break; | ||||
|  | ||||
|         case wxMOD_NONE: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user