multi-select with shift and cmd like they are used to. Other
platforms are not affected.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38631
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool MetaDown() { return m_meta; }
bool ShiftDown() { return m_shift; }
bool AltDown() { return m_alt; }
bool MetaDown() { return m_meta; }
bool ShiftDown() { return m_shift; }
bool AltDown() { return m_alt; }
+ bool CmdDown()
+ {
+#if defined(__WXMAC__) || defined(__WXCOCOA__)
+ return MetaDown();
+#else
+ return ControlDown();
+#endif
+ }
bool MetaDown() { return m_meta; }
bool ShiftDown() { return m_shift; }
bool AltDown() { return m_alt; }
bool MetaDown() { return m_meta; }
bool ShiftDown() { return m_shift; }
bool AltDown() { return m_alt; }
+ bool CmdDown()
+ {
+#if defined(__WXMAC__) || defined(__WXCOCOA__)
+ return MetaDown();
+#else
+ return ControlDown();
+#endif
+ }
protected:
int m_rowOrCol;
protected:
int m_rowOrCol;
bool MetaDown() { return m_meta; }
bool ShiftDown() { return m_shift; }
bool AltDown() { return m_alt; }
bool MetaDown() { return m_meta; }
bool ShiftDown() { return m_shift; }
bool AltDown() { return m_alt; }
+ bool CmdDown()
+ {
+#if defined(__WXMAC__) || defined(__WXCOCOA__)
+ return MetaDown();
+#else
+ return ControlDown();
+#endif
+ }
protected:
wxGridCellCoords m_topLeft;
protected:
wxGridCellCoords m_topLeft;
if ( row >= 0 &&
!SendEvent( wxEVT_GRID_LABEL_LEFT_CLICK, row, -1, event ) )
{
if ( row >= 0 &&
!SendEvent( wxEVT_GRID_LABEL_LEFT_CLICK, row, -1, event ) )
{
- if ( !event.ShiftDown() && !event.ControlDown() )
+ if ( !event.ShiftDown() && !event.CmdDown() )
ClearSelection();
if ( m_selection )
{
ClearSelection();
if ( m_selection )
{
if ( col >= 0 &&
!SendEvent( wxEVT_GRID_LABEL_LEFT_CLICK, -1, col, event ) )
{
if ( col >= 0 &&
!SendEvent( wxEVT_GRID_LABEL_LEFT_CLICK, -1, col, event ) )
{
- if ( !event.ShiftDown() && !event.ControlDown() )
+ if ( !event.ShiftDown() && !event.CmdDown() )
ClearSelection();
if ( m_selection )
{
ClearSelection();
if ( m_selection )
{
if ( coords != wxGridNoCellCoords )
{
if ( coords != wxGridNoCellCoords )
{
- if ( event.ControlDown() )
{
if ( m_selectingKeyboard == wxGridNoCellCoords)
m_selectingKeyboard = coords;
{
if ( m_selectingKeyboard == wxGridNoCellCoords)
m_selectingKeyboard = coords;
coords.GetCol(),
event ) )
{
coords.GetCol(),
event ) )
{
- if ( !event.ControlDown() )
+ if ( !event.CmdDown() )
ClearSelection();
if ( event.ShiftDown() )
{
ClearSelection();
if ( event.ShiftDown() )
{
DisableCellEditControl();
MakeCellVisible( coords );
DisableCellEditControl();
MakeCellVisible( coords );
- if ( event.ControlDown() )