From 6c69484899948ef380a78322010c8b3ca1eec643 Mon Sep 17 00:00:00 2001 From: James Crook Date: Sun, 1 Mar 2020 21:59:36 +0000 Subject: [PATCH] Bug 2285 - Many action buttons and items in Toolbars activate the action on right-click (expect context menu or null action) --- src/widgets/AButton.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/AButton.cpp b/src/widgets/AButton.cpp index 5f82ef5e4..08e7a7b88 100644 --- a/src/widgets/AButton.cpp +++ b/src/widgets/AButton.cpp @@ -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;