1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-15 08:07:41 +02:00

Bug 1450 - Mac: Text grid cells cannot be TAB'bed out of

Thanks to David for the fix.
This commit is contained in:
David Bailes 2016-11-21 17:31:00 +00:00 committed by James Crook
parent 70eef44150
commit 3cecbcd44e

View File

@ -17,7 +17,8 @@ void wxTabTraversalWrapperCharHook(wxKeyEvent &event)
// due to the switch to wxWidgets 3.0.2
if (event.GetKeyCode() == WXK_TAB) {
auto focus = wxWindow::FindFocus();
if (dynamic_cast<wxGrid*>(focus)) {
if (dynamic_cast<wxGrid*>(focus)
|| (focus && dynamic_cast<wxGrid*>(focus->GetParent()->GetParent()))) {
// Let wxGrid do its own TAB key handling
event.Skip();
return;