mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-18 00:50:05 +02:00
Looks like FindFocus() on wxGTK can return NULL
This commit is contained in:
parent
0e42bd42b6
commit
867775ef99
@ -27,11 +27,15 @@ void wxTabTraversalWrapperCharHook(wxKeyEvent &event)
|
|||||||
event.Skip();
|
event.Skip();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
focus->Navigate(
|
// Apparently, on wxGTK, FindFocus can return NULL
|
||||||
event.ShiftDown()
|
if (focus)
|
||||||
? wxNavigationKeyEvent::IsBackward
|
{
|
||||||
: wxNavigationKeyEvent::IsForward
|
focus->Navigate(
|
||||||
);
|
event.ShiftDown()
|
||||||
|
? wxNavigationKeyEvent::IsBackward
|
||||||
|
: wxNavigationKeyEvent::IsForward
|
||||||
|
);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user