Fix stream deck condition not matching key "down" state properly

This commit is contained in:
WarmUpTill 2026-02-13 20:02:24 +01:00
parent 03fe7016e4
commit 6d989ffe0a

View File

@ -93,7 +93,7 @@ bool MacroConditionStreamdeck::MessageMatches(const StreamDeckMessage &message)
{
const bool keyStateMatches = !_pattern.checkKeyState ||
((message.keyDown && _pattern.keyDown) ||
(!message.keyDown && !message.keyDown));
(!message.keyDown && !_pattern.keyDown));
const bool positionMatches = !_pattern.checkPosition ||
(message.row == _pattern.row &&
message.column == _pattern.column);