Qt: Don't open dialog on shift-click for effect bindings

pull/3679/head
Stenzek 9 months ago
parent e0f97a8a00
commit 1ef7ce0d7f
No known key found for this signature in database

@ -207,7 +207,8 @@ bool InputBindingWidget::event(QEvent* event)
if (event->type() == QEvent::MouseButtonRelease)
{
QMouseEvent* mev = static_cast<QMouseEvent*>(event);
if (mev->button() == Qt::LeftButton && mev->modifiers() & Qt::ShiftModifier)
if (mev->button() == Qt::LeftButton && mev->modifiers() & Qt::ShiftModifier &&
!InputBindingInfo::IsEffectType(m_bind_type))
{
openDialog();
return false;

Loading…
Cancel
Save