1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-28 07:28:47 +01:00

Bug 1656 - (Windows) Disabled Edit Toolbar buttons not skipped for navigation and respond to ENTER as if auto-select was On

This fix addresses the second part.  ENTER (including from numpad) now has no effect if the button is disabled.
This commit is contained in:
James Crook
2017-07-04 22:34:43 +01:00
parent d903845a6b
commit c12f849f36

View File

@@ -496,6 +496,8 @@ void AButton::OnKeyDown(wxKeyEvent & event)
break; break;
case WXK_RETURN: case WXK_RETURN:
case WXK_NUMPAD_ENTER: case WXK_NUMPAD_ENTER:
if( !mEnabled )
break;
mWasShiftDown = event.ShiftDown(); mWasShiftDown = event.ShiftDown();
mWasControlDown = event.ControlDown(); mWasControlDown = event.ControlDown();
Click(); Click();