Use wxNavigationEnabled<> for keyboard navigation in generic wxSearchCtrl.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Jul 2011 22:19:23 +0000 (22:19 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Jul 2011 22:19:23 +0000 (22:19 +0000)
commite7c9d913c07b3b933fe86e3a3c1657a23cff073f
treee08f3cb0811ccd9de598ef0a6b2fea2d405fba91
parent4d98817cfab2654773755cb5c540057c5f3d4fd6
Use wxNavigationEnabled<> for keyboard navigation in generic wxSearchCtrl.

Derive generic wxSearchCtrl implementation from wxNavigationEnabled<> to
ensure that TAB navigation works correctly in it. While it did work before for
search controls without wxTE_PROCESS_ENTER style (because this wasn't handled
by this control itself at all in fact), it stopped working as soon as this
style was used in wxMSW because then the navigation was implemented by
manually calling wxWindow::Navigate() and this requires wxControlContainer
support.

Use wxNavigationEnabled<> to easily add it to wxSearchCtrl.

See #12808.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/srchctrl.h