shithub: riscv

Download patch

ref: c4dd0f628262161b1d75e2113fc35ac86f11ec4a
parent: 36abc45f2895ebc6b02f746586e814349581579b
author: cinap_lenrek <[email protected]>
date: Mon Jul 30 16:40:28 EDT 2018

kbdfs: ignore first 16 scancodes (number row) in kbtabctl[] for control key reverse mapping

--- a/sys/src/cmd/aux/kbdfs/kbdfs.c
+++ b/sys/src/cmd/aux/kbdfs/kbdfs.c
@@ -454,7 +454,7 @@
 		k.b = 0;
 		k.down = (p[0] == 'r');
 		for(i=0; i<Nscan; i++){
-			if(kbtab[i] == k.r || kbtabshift[i] == k.r || kbtabctl[i] == k.r){
+			if(kbtab[i] == k.r || kbtabshift[i] == k.r || (i >= 16 && kbtabctl[i] == k.r)){
 				/* assign button from kbtab */
 				k.b = kbtab[i];
 				/* handle ^X forms */