NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/55608: cannot input specific key of the USB Japanese keyboard layout



>Number:         55608
>Category:       kern
>Synopsis:       cannot input specific key of the USB Japanese keyboard layout
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 25 21:25:00 +0000 2020
>Originator:     Shinichi Doyashiki
>Release:        NetBSD 9.99.71
>Organization:
	at home
>Environment:
System: NetBSD chise2.csel.org 9.99.71 NetBSD 9.99.71 (J4105PC) #3: Tue Aug 25 14:01:05 JST 2020 clare%chise2.csel.org@localhost:/export/netbsd/current/src/sys/arch/amd64/compile/J4105PC amd64
Architecture: x86_64
Machine: amd64
>Description:
	With my keyboard, the ARCHISS keyboard model AS-KBPD91/LSBKN,
	I cannot input '}' nor ']' in wscons's Japanese keymap mode.
	This scancode of the key ']' can be varying depending on the
	hardware model and/or the vendor.

>How-To-Repeat:
	1. get and plug the USB keyboard with Japanese layout.
	2. set keymap to "jp" by "wsconsctl -w encoding=jp".
	3. hit the "]" key and see the results.

>Fix:
	Add the missing scancode mapping.

RCS file: /export/netbsd/cvsroot/src/sys/dev/hid/hidkbdmap.c,v
retrieving revision 1.10
diff -u -r1.10 hidkbdmap.c
--- hidkbdmap.c	13 Jul 2020 09:44:48 -0000	1.10
+++ hidkbdmap.c	25 Aug 2020 08:05:16 -0000
@@ -171,7 +171,8 @@
     KC(46),			KS_asciicircum,		KS_asciitilde,
     KC(47),			KS_at,			KS_grave,
     KC(48),			KS_bracketleft,		KS_braceleft,
-    KC(50),			KS_bracketright,	KS_braceright,
+    KC(49),			KS_bracketright,	KS_braceright, /* ARCHISS model */
+    KC(50),			KS_bracketright,	KS_braceright, /* other model */
     KC(51),			KS_semicolon,		KS_plus,
     KC(52),			KS_colon,		KS_asterisk,
     KC(53), 			KS_Zenkaku_Hankaku, /* replace grave/tilde */



Home | Main Index | Thread Index | Old Index