mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-16 00:27:42 +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:
parent
70eef44150
commit
3cecbcd44e
@ -17,7 +17,8 @@ void wxTabTraversalWrapperCharHook(wxKeyEvent &event)
|
|||||||
// due to the switch to wxWidgets 3.0.2
|
// due to the switch to wxWidgets 3.0.2
|
||||||
if (event.GetKeyCode() == WXK_TAB) {
|
if (event.GetKeyCode() == WXK_TAB) {
|
||||||
auto focus = wxWindow::FindFocus();
|
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
|
// Let wxGrid do its own TAB key handling
|
||||||
event.Skip();
|
event.Skip();
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user