mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-04 16:14:00 +01:00
Bug 1450 - Mac: Text grid cells cannot be TAB'bed out of
Thanks to David for the fix.
This commit is contained in:
committed by
James Crook
parent
70eef44150
commit
3cecbcd44e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user