FreeBSD Bugzilla – Attachment 222202 Details for
Bug 253249
USB keyboard: repeated and out of order characters
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
ukbd_rollover.patch
ukbd.patch (text/plain), 896 bytes, created by
Vladimir Kondratyev
on 2021-02-06 09:00:01 UTC
(
hide
)
Description:
ukbd_rollover.patch
Filename:
MIME Type:
Creator:
Vladimir Kondratyev
Created:
2021-02-06 09:00:01 UTC
Size:
896 bytes
patch
obsolete
>diff --git a/sys/dev/usb/input/ukbd.c b/sys/dev/usb/input/ukbd.c >index 4f27bf95b94..4b3675df270 100644 >--- a/sys/dev/usb/input/ukbd.c >+++ b/sys/dev/usb/input/ukbd.c >@@ -720,11 +720,16 @@ ukbd_intr_callback(struct usb_xfer *xfer, usb_error_t error) > hid_get_data_unsigned(sc->sc_buffer, len, &tmp_loc); > /* advance to next location */ > tmp_loc.pos += tmp_loc.size; >+ if (key == KEY_ERROR) { >+ DPRINTF("KEY_ERROR\n"); >+ sc->sc_ndata = sc->sc_odata; >+ goto tr_setup; /* ignore */ >+ } > if (modifiers & MOD_FN) > key = ukbd_apple_fn(key); > if (sc->sc_flags & UKBD_FLAG_APPLE_SWAP) > key = ukbd_apple_swap(key); >- if (key == KEY_NONE || key == KEY_ERROR || key >= UKBD_NKEYCODE) >+ if (key == KEY_NONE || key >= UKBD_NKEYCODE) > continue; > /* set key in bitmap */ > sc->sc_ndata.bitmap[key / 64] |= 1ULL << (key % 64);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 253249
:
222162
|
222163
|
222178
|
222185
| 222202