Hi tech@,
When using wscons, the key-repeat behavior of wskbd doesn't handle
the case where a key is pressed while a previous key-repeat is in
progress (and the previous key is still being held).
I've been using the following patch since OpenBSD 3.8 (the behavior
wasn't present in OpenBSD 3.7 and earlier).
Index: sys/dev/wscons/wskbd.c
===================================================================
RCS file: /cvs/src/sys/dev/wscons/wskbd.c,v
retrieving revision 1.83
diff -u -r1.83 wskbd.c
--- sys/dev/wscons/wskbd.c 12 Dec 2015 12:30:18 -0000 1.83
+++ sys/dev/wscons/wskbd.c 1 Jun 2016 05:57:29 -0000
@@ -647,13 +647,6 @@
struct wskbd_softc *sc = (struct wskbd_softc *)dev;
#if NWSDISPLAY > 0
int num;
-#endif
-
-#if NWSDISPLAY > 0
- if (sc->sc_repeating) {
- sc->sc_repeating = 0;
- timeout_del(&sc->sc_repeat_ch);
- }
/*
* If /dev/wskbdN is not connected in event mode translate and