Add an explicit SetFocus() call to fix wxTreeCtrl unit test.
Fixing the implicit focus grabbing by wxTreeCtrl::SelectItem() in r65905 broke its unit test case as the simulated key event was not delivered to wxTreeCtrl itself any more. Fix this by simply setting the focus to the tree explicitly before sending it any key strokes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
a48cf5e2d3
commit
a7dc53953b
@ -595,6 +595,7 @@ void TreeCtrlTestCase::KeyNavigation()
|
||||
|
||||
m_tree->SelectItem(m_root);
|
||||
|
||||
m_tree->SetFocus();
|
||||
sim.Char(WXK_RIGHT);
|
||||
wxYield();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user