View | Details | Raw Unified | Return to bug 253249 | Differences between
and this patch

Collapse All | Expand All

(-)b/sys/dev/usb/input/ukbd.c (-1 / +5 lines)
Lines 720-730 ukbd_intr_callback(struct usb_xfer *xfer, usb_error_t error) Link Here
720
					    hid_get_data_unsigned(sc->sc_buffer, len, &tmp_loc);
720
					    hid_get_data_unsigned(sc->sc_buffer, len, &tmp_loc);
721
					/* advance to next location */
721
					/* advance to next location */
722
					tmp_loc.pos += tmp_loc.size;
722
					tmp_loc.pos += tmp_loc.size;
723
					if (key == KEY_ERROR) {
724
						sc->sc_ndata = sc->sc_odata;
725
						return;
726
					}
723
					if (modifiers & MOD_FN)
727
					if (modifiers & MOD_FN)
724
						key = ukbd_apple_fn(key);
728
						key = ukbd_apple_fn(key);
725
					if (sc->sc_flags & UKBD_FLAG_APPLE_SWAP)
729
					if (sc->sc_flags & UKBD_FLAG_APPLE_SWAP)
726
						key = ukbd_apple_swap(key);
730
						key = ukbd_apple_swap(key);
727
					if (key == KEY_NONE || key == KEY_ERROR || key >= UKBD_NKEYCODE)
731
					if (key == KEY_NONE || key >= UKBD_NKEYCODE)
728
						continue;
732
						continue;
729
					/* set key in bitmap */
733
					/* set key in bitmap */
730
					sc->sc_ndata.bitmap[key / 64] |= 1ULL << (key % 64);
734
					sc->sc_ndata.bitmap[key / 64] |= 1ULL << (key % 64);

Return to bug 253249