Add wx.KeyEvent.GetModifiers

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-02-10 18:32:41 +00:00
parent eb3d14161d
commit 488867abe8

View File

@@ -1219,6 +1219,17 @@ public:
* ", "");
DocDeclStr(
int, GetModifiers() const,
"Returns a bitmask of the current modifier settings. Can be used to
check if the key event has exactly the given modifiers without having
to explicitly check that the other modifiers are not down. For
example::
if event.GetModifers() == wx.MOD_CONTROL:
DoSomething()
", "");
DocDeclStr(
bool , ControlDown() const,
"Returns ``True`` if the Control key was down at the time of the event.", "");