X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/33b494d643e42a2e2963987cbc3637f4593ea43a..ab0d42f76d5594bd28fdcad35bedeb380902f3ea:/include/wx/window.h diff --git a/include/wx/window.h b/include/wx/window.h index 86a38edd76..94f9919e5d 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -33,8 +33,8 @@ #include "wx/validate.h" // for wxDefaultValidator (always include it) #if wxUSE_PALETTE - #include "wx/dcclient.h" - #include "wx/palette.h" + #include "wx/dcclient.h" + #include "wx/palette.h" #endif // wxUSE_PALETTE #if wxUSE_ACCEL @@ -375,6 +375,9 @@ public: // set focus to this window virtual void SetFocus() = 0; + // set focus to this window as the result of a keyboard action + virtual void SetFocusFromKbd() { SetFocus(); } + // return the window which currently has the focus or NULL static wxWindow *FindFocus() /* = 0: implement in derived classes */;