Page MenuHomeFreeBSD

D27749.diff
No OneTemporary

D27749.diff

diff --git a/sys/dev/usb/input/ukbd.c b/sys/dev/usb/input/ukbd.c
--- a/sys/dev/usb/input/ukbd.c
+++ b/sys/dev/usb/input/ukbd.c
@@ -389,11 +389,9 @@
(key & KEY_RELEASE) ? "released" : "pressed");
#ifdef EVDEV_SUPPORT
- if (evdev_rcpt_mask & EVDEV_RCPT_HW_KBD && sc->sc_evdev != NULL) {
+ if (evdev_rcpt_mask & EVDEV_RCPT_HW_KBD && sc->sc_evdev != NULL)
evdev_push_event(sc->sc_evdev, EV_KEY,
evdev_hid2key(KEY_INDEX(key)), !(key & KEY_RELEASE));
- evdev_sync(sc->sc_evdev);
- }
#endif
if (sc->sc_inputs < UKBD_IN_BUF_SIZE) {
@@ -559,6 +557,11 @@
}
}
+#ifdef EVDEV_SUPPORT
+ if (evdev_rcpt_mask & EVDEV_RCPT_HW_KBD && sc->sc_evdev != NULL)
+ evdev_sync(sc->sc_evdev);
+#endif
+
/* wakeup keyboard system */
ukbd_event_keyinput(sc);
}

File Metadata

Mime Type
text/plain
Expires
Wed, Feb 12, 8:28 PM (19 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16615954
Default Alt Text
D27749.diff (771 B)

Event Timeline