1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-30 09:13:50 +01:00

Apply recent navigation fixes only where needed on Mac...

This commit is contained in:
Paul Licameli
2016-06-25 21:20:02 -04:00

View File

@@ -20,6 +20,9 @@ wxPanelWrapper::wxPanelWrapper(wxWindow * parent, wxWindowID id,
void wxPanelWrapper::DoCharHook(wxKeyEvent &event)
{
#ifdef __WXMAC
// Compensate for the regressions in TAB key navigation
// due to the switch to wxWidgets 3.0.2
if (event.GetKeyCode() == WXK_TAB) {
wxWindow::FindFocus()->Navigate(
event.ShiftDown()
@@ -28,6 +31,7 @@ void wxPanelWrapper::DoCharHook(wxKeyEvent &event)
);
return;
}
#endif
event.Skip();
}