From 3dc0ed6c5617aa18c40f32008f091bdcea440227 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sat, 1 Oct 2011 18:35:00 +0000 Subject: [PATCH] Use CmdDown in BaseGrid rather than #ifdefs Originally committed to SVN as r5703. --- aegisub/src/base_grid.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/aegisub/src/base_grid.cpp b/aegisub/src/base_grid.cpp index f88298eb5..0a633e64d 100644 --- a/aegisub/src/base_grid.cpp +++ b/aegisub/src/base_grid.cpp @@ -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();