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

This commit is contained in:
cinap_lenrek 2018-07-30 20:40:28 +02:00
parent 36abc45f28
commit c4dd0f6282

View file

@ -454,7 +454,7 @@ Nextmsg:
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 */