Stop setting current cell on first Ctrl-drag event
This is not necessary any longer as the current cell is changed on Ctrl-click since the previous commit. This commit is best viewed ignoring whitespace.
This commit is contained in:
@@ -4483,14 +4483,8 @@ wxGrid::DoGridCellDrag(wxMouseEvent& event,
|
||||
SaveEditControlValue();
|
||||
}
|
||||
|
||||
switch ( event.GetModifiers() )
|
||||
if ( !event.HasAnyModifiers() )
|
||||
{
|
||||
case wxMOD_CONTROL:
|
||||
if ( isFirstDrag )
|
||||
SetGridCursor(coords);
|
||||
break;
|
||||
|
||||
case wxMOD_NONE:
|
||||
if ( CanDragCell() )
|
||||
{
|
||||
if ( isFirstDrag )
|
||||
@@ -4502,7 +4496,6 @@ wxGrid::DoGridCellDrag(wxMouseEvent& event,
|
||||
return performDefault;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
// Edit the current selection block independently of the modifiers state.
|
||||
|
Reference in New Issue
Block a user