minor fix

hotkeys don't get triggerd twice when after the right
keys are pressed one or more other keys are pressed
afterwards
This commit is contained in:
Alessandro Mauri 2020-07-05 12:02:32 +02:00
parent ed7202e5c8
commit d39281f9a6

2
hkd.c
View File

@ -274,7 +274,7 @@ int main (void)
struct key_buffer comb1 = {{KEY_LEFTALT, KEY_S}, 2}; struct key_buffer comb1 = {{KEY_LEFTALT, KEY_S}, 2};
if (pb.size != prev_size) { if (pb.size > prev_size) {
printf("Pressed keys: "); printf("Pressed keys: ");
for (unsigned int i = 0; i < pb.size; i++) for (unsigned int i = 0; i < pb.size; i++)
printf("%d ", pb.buf[i]); printf("%d ", pb.buf[i]);