don't check for Meta key in wxKeyEvent::HasModifiers()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-10-08 15:58:52 +00:00
parent a8d20c57ae
commit d11710cbb5
2 changed files with 9 additions and 3 deletions

View File

@@ -780,7 +780,10 @@ public:
bool AltDown() const { return m_altDown; }
bool ShiftDown() const { return m_shiftDown; }
bool HasModifiers() const { return ControlDown() || AltDown() || MetaDown(); }
// exclude MetaDown() from HasModifiers() because NumLock under X is often
// configured as mod2 modifier, yet the key events even when it is pressed
// should be processed normally, not like Ctrl- or Alt-key
bool HasModifiers() const { return ControlDown() || AltDown(); }
// get the key code: an ASCII7 char or an element of wxKeyCode enum
int GetKeyCode() const { return (int)m_keyCode; }