diff options
author | Nicolas Boichat <drinkcat@chromium.org> | 2020-01-14 18:13:15 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-01-16 10:17:51 +0000 |
commit | 3a6cd780faf76ad7f6c4bff5c77c190d75cb739b (patch) | |
tree | c04a1a07b33b3b4808454fb837a7be31310a31ad /chip | |
parent | e5d01b87e4007d19dbc37a0d0791a5ee36890f0e (diff) | |
download | chrome-ec-3a6cd780faf76ad7f6c4bff5c77c190d75cb739b.tar.gz |
chip/stm32/usb_hid_keyboard: Fix (mu)henkan keys for JP input
かな (kana) key in the right side of the space bar (Row 12/
Column 1) must emit USB keycode 0x8a, which will get translated
to KEY_HENKAN(92) by the Linux kernel.
英数 (eisu) key on the left side (Row 12/Column 3) must emit USB
0x8b, translated to KEY_MUHENKAN(94).
BRANCH=kukui
BUG=b:144141826
TEST=Flash masterball, hand the device to Japanese PM for testing.
Change-Id: Ie16453a605a7153f248badbc4c8ebfc3872ce3ac
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2002428
Tested-by: Joseph Kurachi Luk <kura@google.com>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/stm32/usb_hid_keyboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/stm32/usb_hid_keyboard.c b/chip/stm32/usb_hid_keyboard.c index c6d6fb3292..7ca9aeb164 100644 --- a/chip/stm32/usb_hid_keyboard.c +++ b/chip/stm32/usb_hid_keyboard.c @@ -129,7 +129,7 @@ const uint8_t keycodes[KEYBOARD_COLS_MAX][KEYBOARD_ROWS] = { {0x00, 0x42, 0x41, 0x68, 0x0f, 0x37, 0x26, 0x12}, {0xe6, 0x00, 0x89, 0x00, 0x31, 0x00, 0xe2, 0x00}, {0x00, 0x2a, 0x00, 0x31, 0x28, 0x2c, 0x51, 0x52}, - {0x00, 0x90, 0x00, 0x91, 0x00, 0x00, 0x4f, 0x50}, + {0x00, 0x8a, 0x00, 0x8b, 0x00, 0x00, 0x4f, 0x50}, }; /* HID descriptors */ |