X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d0fb62a656c9e47dc4887c5143e692616c36aa37..a64f38d67431a068d6c08b54500527dde04ed703:/tests/events/keyboard.cpp diff --git a/tests/events/keyboard.cpp b/tests/events/keyboard.cpp index 86171ecf12..52e71b5fe3 100644 --- a/tests/events/keyboard.cpp +++ b/tests/events/keyboard.cpp @@ -17,7 +17,9 @@ #pragma hdrstop #endif -#if wxUSE_UIACTIONSIMULATOR +// FIXME: As all the other tests involving wxUIActionSimulator, this one is +// broken under OS X, the test window siply never gets any events. +#if wxUSE_UIACTIONSIMULATOR && !defined(__WXOSX__) #ifndef WX_PRECOMP #include "wx/app.h" @@ -39,7 +41,7 @@ class KeyboardTestWindow : public wxWindow { public: KeyboardTestWindow(wxWindow *parent) - : wxWindow(parent, wxID_ANY) + : wxWindow(parent, wxID_ANY, wxPoint(0, 0), parent->GetClientSize()) { Connect(wxEVT_KEY_DOWN, wxKeyEventHandler(KeyboardTestWindow::OnKeyDown)); Connect(wxEVT_CHAR, wxKeyEventHandler(KeyboardTestWindow::OnChar));