The "Home" key produces rune "7" on certain USB keyboard. The fix is:

/n/sources/plan9/sys/src/cmd/usb/kb/kb.c:473,479 - 
/sys/src/cmd/usb/kb/kb.c:473,479
  }
  
  
- #define hasesc1(sc)   (((sc) > 0x47) || ((sc) == 0x38))
+ #define hasesc1(sc)   (((sc) >= 0x47) || ((sc) == 0x38))
  
  static void
  putmod(KDev *f, uchar mods, uchar omods, uchar mask, uchar esc, uchar sc)


Reply via email to