diff --git a/tests/controls/windowtest.cpp b/tests/controls/windowtest.cpp index f5f3e67056..58348da8ec 100644 --- a/tests/controls/windowtest.cpp +++ b/tests/controls/windowtest.cpp @@ -122,6 +122,7 @@ void WindowTestCase::KeyEvent() wxUIActionSimulator sim; m_window->SetFocus(); + wxYield(); sim.Text("text"); sim.Char(WXK_SHIFT);