mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-07 15:05:38 +01:00
Looks like FindFocus() on wxGTK can return NULL
This commit is contained in:
@@ -27,11 +27,15 @@ void wxTabTraversalWrapperCharHook(wxKeyEvent &event)
|
||||
event.Skip();
|
||||
return;
|
||||
}
|
||||
focus->Navigate(
|
||||
event.ShiftDown()
|
||||
? wxNavigationKeyEvent::IsBackward
|
||||
: wxNavigationKeyEvent::IsForward
|
||||
);
|
||||
// Apparently, on wxGTK, FindFocus can return NULL
|
||||
if (focus)
|
||||
{
|
||||
focus->Navigate(
|
||||
event.ShiftDown()
|
||||
? wxNavigationKeyEvent::IsBackward
|
||||
: wxNavigationKeyEvent::IsForward
|
||||
);
|
||||
}
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user