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:
parent
ed7202e5c8
commit
d39281f9a6
2
hkd.c
2
hkd.c
@ -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]);
|
||||||
|
Loading…
Reference in New Issue
Block a user