X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/687706f5e722ac8a39172024f794ae0ffbd190e2..ede3a6d68af66772b4f5f94208b4126bab566cc8:/src/mac/classic/app.cpp diff --git a/src/mac/classic/app.cpp b/src/mac/classic/app.cpp index d1267be385..c2aaf86cd0 100644 --- a/src/mac/classic/app.cpp +++ b/src/mac/classic/app.cpp @@ -1853,6 +1853,9 @@ int wxKeyCodeToMacModifier(wxKeyCode key) bool wxGetKeyState(wxKeyCode key) //virtual key code if < 10.2.x, else see below { + wxASSERT_MSG(key != WXK_LBUTTON && key != WXK_RBUTTON && key != + WXK_MBUTTON, wxT("can't use wxGetKeyState() for mouse buttons")); + #if __WXMAC_CARBON__ //TODO: Low get map... return !!(GetCurrentKeyModifiers() & wxKeyCodeToMacModifier(key));