Skip to content

Commit 2497ac1

Browse files
fwk: map fn+= to Yen key
Maps fn+= to the JIS Yen key to the left of Backspace (also the Won key on certain Korean layouts). This allows fuller use of these layouts on non-JIS hardware; alternately, users can remap this keys in the OS to whatever function they prefer. Signed-off-by: Jules Bertholet <[email protected]>
1 parent ebf8512 commit 2497ac1

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

board/hx20/keyboard_customization.c

+4
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,10 @@ int hotkey_special_key(uint16_t *key_code, int8_t pressed)
376376
if (fn_table_set(pressed, KB_FN_DELETE))
377377
*key_code = 0xe070;
378378
break;
379+
case 0x0055: /* = -> YEN */
380+
if (fn_table_set(pressed, KB_FN_EQUALS))
381+
*key_code = 0x006A;
382+
break;
379383
case SCANCODE_K: /* TODO: SCROLL_LOCK */
380384
if (fn_table_set(pressed, KB_FN_K))
381385
*key_code = SCANCODE_SCROLL_LOCK;

board/hx20/keyboard_customization.h

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ enum kb_fn_table {
9898
KB_FN_SPACE = BIT(22),
9999
KB_FN_Z = BIT(25),
100100
KB_FN_QUESTIONMARK = BIT(26),
101+
KB_FN_EQUALS = BIT(27),
101102
};
102103

103104
#ifdef CONFIG_KEYBOARD_BACKLIGHT

board/hx30/keyboard_customization.c

+4
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,10 @@ int hotkey_special_key(uint16_t *key_code, int8_t pressed)
376376
if (fn_table_set(pressed, KB_FN_DELETE))
377377
*key_code = 0xe070;
378378
break;
379+
case 0x0055: /* = -> YEN */
380+
if (fn_table_set(pressed, KB_FN_EQUALS))
381+
*key_code = 0x006A;
382+
break;
379383
case SCANCODE_K: /* TODO: SCROLL_LOCK */
380384
if (fn_table_set(pressed, KB_FN_K))
381385
*key_code = SCANCODE_SCROLL_LOCK;

board/hx30/keyboard_customization.h

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ enum kb_fn_table {
9898
KB_FN_SPACE = BIT(22),
9999
KB_FN_Z = BIT(25),
100100
KB_FN_QUESTIONMARK = BIT(26),
101+
KB_FN_EQUALS = BIT(27),
101102
};
102103

103104
#ifdef CONFIG_KEYBOARD_BACKLIGHT

0 commit comments

Comments
 (0)