stop appending repeat keys to the input buffer master
authorJohn Tsiombikas <nuclear@member.fsf.org>
Tue, 4 Jul 2023 21:43:02 +0000 (00:43 +0300)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Tue, 4 Jul 2023 21:43:02 +0000 (00:43 +0300)
src/dos/keyb.c
src/dos/timer.c

index b67434c..8789ea7 100644 (file)
@@ -238,7 +238,7 @@ static void INTERRUPT kbintr()
                c = (keystate[KEY_LSHIFT] | keystate[KEY_RSHIFT]) ? scantbl_shift[code] : key;
        }
 
-       if(press) {
+       if(press && !keystate[key]) {
                /* append to buffer */
                last_key = c;
                buffer[buf_widx] = c;
index b7cd6a2..1bac207 100644 (file)
@@ -15,7 +15,7 @@
 #endif
 
 #include "pit8254.h"
-#include "inttypes.h"
+#include "sizeint.h"
 #include "util.h"
 #include "dosutil.h"