ref: 26fa176792ed34ca22c3d605e14328470b88c769
dir: /riow-skip-redundant/
diff 06c482ecc7e168719718ba8e853261265b4a3cbd uncommitted --- a//sys/src/cmd/riow.c +++ b//sys/src/cmd/riow.c @@ -377,6 +371,9 @@ return 0; } } + /* skip redundant event */ + if(c == 'k' && (mod & Mshift) == 0) + return 0; /* mod4 + shift + 1…0 yields a shifted value on 'c': workaround */ if(c == 'k' && mod == (Mmod4|Mshift) && r >= '0' && r <= '9'){ vdaction(r - '0');