add wxYield() after SetFocus(), set focus event needs to be processed before the control can accept input

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2014-09-23 17:41:06 +00:00
parent 3a189686d7
commit bc19f463a2
2 changed files with 4 additions and 0 deletions

View File

@ -123,6 +123,7 @@ void SpinCtrlDoubleTestCase::Wrap()
wxUIActionSimulator sim;
m_spin->SetFocus();
wxYield();
sim.Char(WXK_DOWN);
@ -203,6 +204,7 @@ void SpinCtrlDoubleTestCase::Increment()
wxUIActionSimulator sim;
m_spin->SetFocus();
wxYield();
sim.Char(WXK_UP);

View File

@ -125,6 +125,7 @@ void SpinCtrlTestCase::Arrows()
wxUIActionSimulator sim;
m_spin->SetFocus();
wxYield();
sim.Char(WXK_UP);
@ -154,6 +155,7 @@ void SpinCtrlTestCase::Wrap()
wxUIActionSimulator sim;
m_spin->SetFocus();
wxYield();
sim.Char(WXK_DOWN);