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:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user