shithub: patch

ref: 877ce337da48a57cfe3ae93f0affc4d62e2aa25f
dir: /riow-skip-redundant/

View raw version
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');