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
ea7f1c8cd2
commit
f7d6cb2081
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257295
@ -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…
Reference in New Issue
Block a user