m_shiftDown(shiftDown),
m_altDown(altDown),
m_metaDown(metaDown)
+#ifdef __WXOSX__
+ ,m_rawControlDown(false)
+#endif
{
}
return (m_controlDown ? wxMOD_CONTROL : 0) |
(m_shiftDown ? wxMOD_SHIFT : 0) |
(m_metaDown ? wxMOD_META : 0) |
+#ifdef __WXOSX__
(m_rawControlDown ? wxMOD_RAW_CONTROL : 0) |
+#endif
(m_altDown ? wxMOD_ALT : 0);
}
// returns true if any modifiers at all are pressed
- bool HasModifiers() const { return GetModifiers() != wxMOD_NONE; }
+ bool HasAnyModifiers() const { return GetModifiers() != wxMOD_NONE; }
+
+ // returns true if any modifiers changing the usual key interpretation are
+ // pressed, notably excluding Shift
+ bool HasModifiers() const
+ {
+ return ControlDown() || RawControlDown() || AltDown();
+ }
// accessors for individual modifier keys
bool ControlDown() const { return m_controlDown; }