1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-17 16:50:26 +02:00

Bug 2285 - Many action buttons and items in Toolbars activate the action on right-click (expect context menu or null action)

This commit is contained in:
James Crook 2020-03-01 21:59:36 +00:00
parent 2a4421bf92
commit 6c69484899

View File

@ -467,7 +467,7 @@ void AButton::OnMouseEvent(wxMouseEvent & event)
event.m_x < clientSize.x && event.m_y < clientSize.y);
if (mEnabled && event.IsButton()) {
if (event.ButtonIsDown(wxMOUSE_BTN_ANY)) {
if (event.ButtonIsDown(wxMOUSE_BTN_LEFT)) {
mIsClicking = true;
if (event.ButtonDClick())
mIsDoubleClicked = true;