ref: 2663fd26c74a163a30328f9fecbe8b5f46c977f6
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');