mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-07 15:22:34 +02:00
Apply recent navigation fixes only where needed on Mac...
This commit is contained in:
commit
39186bce0d
@ -20,6 +20,9 @@ wxPanelWrapper::wxPanelWrapper(wxWindow * parent, wxWindowID id,
|
|||||||
|
|
||||||
void wxPanelWrapper::DoCharHook(wxKeyEvent &event)
|
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) {
|
if (event.GetKeyCode() == WXK_TAB) {
|
||||||
wxWindow::FindFocus()->Navigate(
|
wxWindow::FindFocus()->Navigate(
|
||||||
event.ShiftDown()
|
event.ShiftDown()
|
||||||
@ -28,6 +31,7 @@ void wxPanelWrapper::DoCharHook(wxKeyEvent &event)
|
|||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
event.Skip();
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user