diff --git a/wxPython/src/_event.i b/wxPython/src/_event.i index ce01fce0c9..3a0d4194e4 100644 --- a/wxPython/src/_event.i +++ b/wxPython/src/_event.i @@ -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.", "");