commit 878dd61a08c035adec9d1ee6144239d8a04a44dd
parent dddc69c41caa8ad08ad68466f7fcf977e444b2f4
Author: Claudio Alessi <smoppy@gmail.com>
Date: Tue, 25 Jul 2017 22:47:10 +0200
If a key is matched ther discard remaining input.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/circo.c b/circo.c
@@ -917,6 +917,7 @@ usrin(void) {
for(i = 0; i < LENGTH(keys); ++i) {
if(keys[i].key == key) {
keys[i].func(&keys[i].arg);
+ while(getkey() != -1); /* discard remaining input */
return;
}
}