zxkeyboard: Fix autorepeat broken by previous optimization
authorAlan Cox <alan@linux.intel.com>
Wed, 28 Nov 2018 22:27:18 +0000 (22:27 +0000)
committerAlan Cox <alan@linux.intel.com>
Wed, 28 Nov 2018 22:27:18 +0000 (22:27 +0000)
Kernel/dev/zx/zxkeyboard.c

index 7b44551..d5f4a7c 100644 (file)
@@ -140,8 +140,8 @@ void tty_pollirq(void)
 
        newkey = 0;
 
-       /* Nothing changed - no processing required */
-       if (!update_keyboard())
+       /* Nothing changed, and chance of key repeat work - so done */
+       if (!update_keyboard() && !keysdown)
                return;
 
        for (i = 0; i < 8; i++) {