Use CmdDown in BaseGrid rather than #ifdefs

Originally committed to SVN as r5703.
This commit is contained in:
Thomas Goyne 2011-10-01 18:35:00 +00:00
parent c199bd6d18
commit 3dc0ed6c56

View file

@ -607,13 +607,9 @@ void BaseGrid::OnMouseEvent(wxMouseEvent &event) {
GetClientSize(&w,&h);
// Modifiers
bool shift = event.m_shiftDown;
bool alt = event.m_altDown;
#ifdef __APPLE__
bool ctrl = event.m_metaDown;
#else
bool ctrl = event.m_controlDown;
#endif
bool shift = event.ShiftDown();
bool alt = event.AltDown();
bool ctrl = event.CmdDown();
// Row that mouse is over
bool click = event.LeftDown();