Make buttons automatable on macOS (#7813)

This commit is contained in:
Tres Finocchiaro
2025-03-24 13:34:28 -04:00
committed by GitHub
parent 7367750823
commit 498315ef48

View File

@@ -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() )