Compile radio button group navigation functions on all platforms

Previously they were only used, and compiled, on the platforms without
wxHAS_NATIVE_TAB_TRAVERSAL, i.e. were not compiled at all in wxGTK, but
we now need them everywhere as they're used to implement public API.
This commit is contained in:
Vadim Zeitlin 2020-09-21 15:34:55 +02:00
parent 24cc6c541e
commit b5fb9bd8d6

View File

@ -233,9 +233,12 @@ void wxControlContainer::SetLastFocus(wxWindow *win)
}
}
#endif // !wxHAS_NATIVE_TAB_TRAVERSAL
// --------------------------------------------------------------------
// The following four functions are used to find other radio buttons
// within the same group. Used by wxSetFocusToChild
// within the same group. Used by wxSetFocusToChild() and to implement
// wxRadioButtonBase public API.
// --------------------------------------------------------------------
#if wxUSE_RADIOBTN
@ -357,6 +360,8 @@ using namespace wxPrivate;
#endif // wxUSE_RADIOBTN
#ifndef wxHAS_NATIVE_TAB_TRAVERSAL
// ----------------------------------------------------------------------------
// Keyboard handling - this is the place where the TAB traversal logic is
// implemented. As this code is common to all ports, this ensures consistent