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
parent
7c108690e5
commit
d1f3be5846
@@ -585,6 +585,7 @@ Unix:
|
|||||||
All (GUI):
|
All (GUI):
|
||||||
|
|
||||||
- Fix hang when deleting columns from wxTreeListCtrl.
|
- Fix hang when deleting columns from wxTreeListCtrl.
|
||||||
|
- Allow using Ctrl-dragging to add to selection in wxGrid (Knut Petter Lehre).
|
||||||
- Fix several floating point rounding bugs in wxPropertyGrid (Artur Wieczorek).
|
- Fix several floating point rounding bugs in wxPropertyGrid (Artur Wieczorek).
|
||||||
- Restore support for wxFD_OVERWRITE_PROMPT and wxFD_FILE_MUST_EXIST in
|
- Restore support for wxFD_OVERWRITE_PROMPT and wxFD_FILE_MUST_EXIST in
|
||||||
wxGenericFileDialog which was accidentally lost some time ago (Carl Godkin).
|
wxGenericFileDialog which was accidentally lost some time ago (Carl Godkin).
|
||||||
|
@@ -3953,7 +3953,9 @@ wxGrid::DoGridCellDrag(wxMouseEvent& event,
|
|||||||
case wxMOD_CONTROL:
|
case wxMOD_CONTROL:
|
||||||
if ( m_selectedBlockCorner == wxGridNoCellCoords)
|
if ( m_selectedBlockCorner == wxGridNoCellCoords)
|
||||||
m_selectedBlockCorner = coords;
|
m_selectedBlockCorner = coords;
|
||||||
UpdateBlockBeingSelected(m_selectedBlockCorner, coords);
|
if ( isFirstDrag )
|
||||||
|
SetGridCursor(coords);
|
||||||
|
UpdateBlockBeingSelected(m_currentCellCoords, coords);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case wxMOD_NONE:
|
case wxMOD_NONE:
|
||||||
|
Reference in New Issue
Block a user