Don't give focus to wxSearchButton when using keyboard navigation.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Jul 2011 22:19:27 +0000 (22:19 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Jul 2011 22:19:27 +0000 (22:19 +0000)
commit7e0a200b08893e6dede1e57e465b1f7bbf6ddbaa
tree8fee85442df53ca07e5d8b30af212003daa1276c
parente7c9d913c07b3b933fe86e3a3c1657a23cff073f
Don't give focus to wxSearchButton when using keyboard navigation.

The search control buttons don't show that they have focus and are not meant
to have it anyhow as they are more control decorations than real buttons and
their functionality can be activated by pressing "Enter" or "Escape" already
from the keyboard. But giving it to them made TAB behave unexpectedly and
wrongly when wxSearchCtrl had focus.

Override AcceptsFocusFromKeyboard() to return false to correct this.

See #12808.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68365 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/generic/srchctlg.cpp