X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/81cfe5e13e9b8a2ec8374af1f7806b05a86d4d4b..0625ef6849f4069540a05ccfb6a42f5fd87a97cb:/wxPython/src/_functions.i diff --git a/wxPython/src/_functions.i b/wxPython/src/_functions.i index aa33a105b9..4e7423d506 100644 --- a/wxPython/src/_functions.i +++ b/wxPython/src/_functions.i @@ -209,17 +209,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); -#else -%inline %{ - bool wxGetKeyState(wxKeyCode key) - { wxPyRaiseNotImplemented(); return False; } -%} -#endif + +DocDeclStr( + bool , wxGetKeyState(wxKeyCode key), + "Get the state of a key (true if pressed or toggled on, false if not.) +This is generally most useful getting the state of the modifier or +toggle keys. On some platforms those may be the only keys that work. +", ""); + //---------------------------------------------------------------------------