Return NOKEY instead of 0 if there are no more key presses queued. This
worked by accident if and only if akbd was part of a kbdmux (which it always was in practice). MFC after: 1 week
This commit is contained in:
parent
d070810920
commit
446b37adc9
@ -621,7 +621,7 @@ akbd_read_char(keyboard_t *kbd, int wait)
|
||||
|
||||
if (!sc->buffers) {
|
||||
mtx_unlock(&sc->sc_mutex);
|
||||
return (0);
|
||||
return (NOKEY);
|
||||
}
|
||||
|
||||
adb_code = sc->buffer[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user