mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-07 04:01:54 +01:00
Fix for bug 1542 - setting of radio buttons in Selection bar
Problem: On Windows, if you set the "length" radio button in the selection bar, then tab round to it, this sets the "end" radio button.
This was caused by commit 7e49dc4.
The fix is to restore the previous code just for Windows.
This commit is contained in:
@@ -1725,9 +1725,21 @@ void NumericTextCtrl::OnKeyDown(wxKeyEvent &event)
|
||||
}
|
||||
|
||||
else if (keyCode == WXK_TAB) {
|
||||
#if defined(__WXMSW__)
|
||||
// Using Navigate() on Windows, rather than the following code causes
|
||||
// bug 1542
|
||||
wxWindow* parent = GetParent();
|
||||
wxNavigationKeyEvent nevent;
|
||||
nevent.SetWindowChange(event.ControlDown());
|
||||
nevent.SetDirection(!event.ShiftDown());
|
||||
nevent.SetEventObject(parent);
|
||||
nevent.SetCurrentFocus(parent);
|
||||
GetParent()->GetEventHandler()->ProcessEvent(nevent);
|
||||
#else
|
||||
Navigate(event.ShiftDown()
|
||||
? wxNavigationKeyEvent::IsBackward
|
||||
: wxNavigationKeyEvent::IsForward);
|
||||
#endif
|
||||
}
|
||||
|
||||
else if (keyCode == WXK_RETURN || keyCode == WXK_NUMPAD_ENTER) {
|
||||
|
||||
Reference in New Issue
Block a user