From d39281f9a676ad2587100df925417297c03a2dc7 Mon Sep 17 00:00:00 2001 From: Alessandro Mauri Date: Sun, 5 Jul 2020 12:02:32 +0200 Subject: [PATCH] minor fix hotkeys don't get triggerd twice when after the right keys are pressed one or more other keys are pressed afterwards --- hkd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hkd.c b/hkd.c index f34384b..5ad533a 100644 --- a/hkd.c +++ b/hkd.c @@ -274,7 +274,7 @@ int main (void) struct key_buffer comb1 = {{KEY_LEFTALT, KEY_S}, 2}; - if (pb.size != prev_size) { + if (pb.size > prev_size) { printf("Pressed keys: "); for (unsigned int i = 0; i < pb.size; i++) printf("%d ", pb.buf[i]);