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
This commit is contained in:
Vadim Zeitlin
2014-09-23 17:42:51 +00:00
parent 52377e3be4
commit fdbc16ed8d

View File

@@ -122,6 +122,7 @@ void WindowTestCase::KeyEvent()
wxUIActionSimulator sim;
m_window->SetFocus();
wxYield();
sim.Text("text");
sim.Char(WXK_SHIFT);