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:
parent
3a189686d7
commit
bc19f463a2
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user