buttonrebindsfilter: Add bracesbuttonrebindsfilter: Add braces

This commit is contained in:
Aleix Pol 2022-11-03 12:49:27 +01:00
parent baac63ca13
commit fee348d147

View file

@ -262,12 +262,13 @@ bool ButtonRebindsFilter::send(TriggerType type, const Trigger &trigger, bool pr
}
const auto &action = typeActions[trigger];
if (const QKeySequence *seq = std::get_if<QKeySequence>(&action))
if (const QKeySequence *seq = std::get_if<QKeySequence>(&action)) {
return sendKeySequence(*seq, pressed, timestamp);
else if (const auto mb = std::get_if<MouseButton>(&action))
} else if (const auto mb = std::get_if<MouseButton>(&action)) {
return sendMouseButton(mb->button, pressed, timestamp);
else if (const auto tb = std::get_if<TabletToolButton>(&action))
} else if (const auto tb = std::get_if<TabletToolButton>(&action)) {
return sendTabletToolButton(tb->button, pressed, timestamp);
}
return false;
}