1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-23 16:08:07 +02: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;
case WXK_RETURN:
case WXK_NUMPAD_ENTER:
if( !mEnabled )
break;
mWasShiftDown = event.ShiftDown();
mWasControlDown = event.ControlDown();
Click();