Add an explicit SetFocus() call to fix wxTreeCtrl unit test.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 16 Nov 2010 22:38:19 +0000 (22:38 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 16 Nov 2010 22:38:19 +0000 (22:38 +0000)
commita7dc53953b7329d6e8b4a6b003f878aab0bdd1cd
tree4ed2cf6a83af35fadef700351cececd529620a79
parenta48cf5e2d30e5415d961ffdbb05fdc53e3d88255
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
tests/controls/treectrltest.cpp