diff --git a/wxPython/src/_functions.i b/wxPython/src/_functions.i index 1d85f1a864..241ad3d5fd 100644 --- a/wxPython/src/_functions.i +++ b/wxPython/src/_functions.i @@ -211,6 +211,14 @@ wxWindow* wxGetTopLevelParent(wxWindow *win); +#if defined(__WXMSW__) || defined(__WXMAC__) +// Get the state of a key (true if pressed, false if not) +// This is generally most useful getting the state of +// Caps Lock, Num Lock and Scroll Lock... +bool wxGetKeyState(wxKeyCode key); +#endif + + //--------------------------------------------------------------------------- #if defined(__WXMSW__) || defined(__WXMAC__)