Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map fn+left win key combination to right win #50

Open
wants to merge 1 commit into
base: fwk-hx20-hx30-4410
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions board/hx20/keyboard_customization.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,10 @@ int hotkey_special_key(uint16_t *key_code, int8_t pressed)
/*if (!fn_table_set(pressed, KB_FN_S))*/

break;
case SCANCODE_LEFT_WIN: /* RIGHT WIN */
if (fn_table_set(pressed, KB_FN_LEFT_WIN))
*key_code = SCANCODE_RIGHT_WIN;
break;
case SCANCODE_LEFT: /* HOME */
if (fn_table_set(pressed, KB_FN_LEFT))
*key_code = 0xe06c;
Expand Down
1 change: 1 addition & 0 deletions board/hx20/keyboard_customization.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ enum kb_fn_table {
KB_FN_B = BIT(20),
KB_FN_P = BIT(21),
KB_FN_SPACE = BIT(22),
KB_FN_LEFT_WIN = BIT(24),
};

#ifdef CONFIG_KEYBOARD_BACKLIGHT
Expand Down
4 changes: 4 additions & 0 deletions board/hx30/keyboard_customization.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,10 @@ int hotkey_special_key(uint16_t *key_code, int8_t pressed)
/*if (!fn_table_set(pressed, KB_FN_S))*/

break;
case SCANCODE_LEFT_WIN: /* RIGHT WIN */
if (fn_table_set(pressed, KB_FN_LEFT_WIN))
*key_code = SCANCODE_RIGHT_WIN;
break;
case SCANCODE_LEFT: /* HOME */
if (fn_table_set(pressed, KB_FN_LEFT))
*key_code = 0xe06c;
Expand Down
1 change: 1 addition & 0 deletions board/hx30/keyboard_customization.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ enum kb_fn_table {
KB_FN_B = BIT(20),
KB_FN_P = BIT(21),
KB_FN_SPACE = BIT(22),
KB_FN_LEFT_WIN = BIT(24),
};

#ifdef CONFIG_KEYBOARD_BACKLIGHT
Expand Down
Loading