Skip to content

Commit ea24640

Browse files
authored
Fix an issue where the OutputKey was incorrect when multiple Combos were configured (#63)
1 parent 439c09e commit ea24640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keyboard.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ func (d *Device) Tick() error {
323323
}
324324
}
325325
}
326-
if matchCnt >= 2 && zero+matchCnt == 4 && matchCnt > matchMax {
326+
if matchCnt >= 2 && zero+matchCnt == 4 && matchCnt > matchMax && len(d.combosPressed) == matchCnt {
327327
matched = true
328328
matchMax = matchCnt
329329
d.combosKey = 0xFF000000 | uint32(keycodeViaToTGK(combo[4]))

0 commit comments

Comments
 (0)