From 498315ef487456402d00f6a3a39c183c49358d16 Mon Sep 17 00:00:00 2001 From: Tres Finocchiaro Date: Mon, 24 Mar 2025 13:34:28 -0400 Subject: [PATCH] Make buttons automatable on macOS (#7813) --- src/gui/widgets/AutomatableButton.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/widgets/AutomatableButton.cpp b/src/gui/widgets/AutomatableButton.cpp index 6e9cd23e4..c205b75cf 100644 --- a/src/gui/widgets/AutomatableButton.cpp +++ b/src/gui/widgets/AutomatableButton.cpp @@ -29,6 +29,7 @@ #include "CaptionMenu.h" #include "StringPairDrag.h" +#include "KeyboardShortcuts.h" namespace lmms::gui @@ -111,7 +112,7 @@ void AutomatableButton::contextMenuEvent( QContextMenuEvent * _me ) void AutomatableButton::mousePressEvent( QMouseEvent * _me ) { if( _me->button() == Qt::LeftButton && - ! ( _me->modifiers() & Qt::ControlModifier ) ) + ! ( _me->modifiers() & KBD_COPY_MODIFIER ) ) { // User simply clicked, toggle if needed if( isCheckable() )