forked from mia/Aegisub
Use CmdDown in BaseGrid rather than #ifdefs
Originally committed to SVN as r5703.
This commit is contained in:
parent
c199bd6d18
commit
3dc0ed6c56
1 changed files with 3 additions and 7 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue