From fdbc16ed8ddf3fa60671fc3aba6d4e6866e780d9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 23 Sep 2014 17:42:51 +0000 Subject: [PATCH] add wxYield() after SetFocus, make sure the all event will be executed. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/controls/windowtest.cpp | 1 + 1 file changed, 1 insertion(+) 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);