diff options
author | Zhuohao Lee <zhuohao@chromium.org> | 2020-06-08 14:23:25 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-06-12 11:39:42 +0000 |
commit | 0aa67e641dbede6bf41321c0b7a5e1630c66794b (patch) | |
tree | 14bdc46be25c3269f558e9c7129e153fc92c2512 | |
parent | 20bd502851dd0dda6ca5b43ae3b143d2635ed63d (diff) | |
download | chrome-ec-0aa67e641dbede6bf41321c0b7a5e1630c66794b.tar.gz |
palkia: remap Fn, Win key to Ctrl and Alt respectively
As we change the Fn, Win key to Ctrl and Alt on the EVT board,
we need to modify the EC key scancode matrix. Besides, this
patch also removes the CONFIG_KEYBOARD_DEBUG from the board.h.
It is unnecessary to keep the keyboard debug log now.
BUG=b:158435931
TEST=evtest, check the key event
Change-Id: I31891117e14077d9d9bd51f8f9a52f6c7dae859f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2234056
Reviewed-by: Jett Rink <jettrink@chromium.org>
Tested-by: Zhuohao Lee <zhuohao@chromium.org>
Commit-Queue: Zhuohao Lee <zhuohao@chromium.org>
-rw-r--r-- | board/palkia/board.h | 1 | ||||
-rw-r--r-- | board/palkia/keyboard_customization.c | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/board/palkia/board.h b/board/palkia/board.h index 1112449fcf..6164e872c1 100644 --- a/board/palkia/board.h +++ b/board/palkia/board.h @@ -25,7 +25,6 @@ /* Keyboard features */ #define CONFIG_PWM_KBLIGHT #define CONFIG_KEYBOARD_CUSTOMIZATION -#define CONFIG_KEYBOARD_DEBUG /* Enable board_config_pre_init() */ #define CONFIG_BOARD_PRE_INIT diff --git a/board/palkia/keyboard_customization.c b/board/palkia/keyboard_customization.c index 03c29a5720..706ad18a4e 100644 --- a/board/palkia/keyboard_customization.c +++ b/board/palkia/keyboard_customization.c @@ -12,8 +12,8 @@ static uint16_t scancode_set2[KEYBOARD_COLS_MAX][KEYBOARD_ROWS] = { {0x0021, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000}, - {0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000}, - {0x0015, 0x0000, 0x0000, 0x000d, 0x000e, 0x0016, 0x0000, 0x001c}, + {0x0000, 0x0000, 0x0000, 0x0011, 0x0000, 0x0000, 0x0000, 0x0000}, + {0x0015, 0x0000, 0x0014, 0x000d, 0x000e, 0x0016, 0x0000, 0x001c}, {0xe011, 0x0011, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000}, {0x0000, 0x0029, 0x0024, 0x000c, 0xe01f, 0x0026, 0x0004, 0x0000}, {0x0022, 0x001a, 0x0006, 0x0005, 0x001b, 0x001e, 0x001d, 0x0076}, |