forked from mirrors/qmk_userspace
fixed: not to send key if fn_keycode is modifier
This commit is contained in:
parent
9a938eecbd
commit
3015f191a5
2 changed files with 29 additions and 9 deletions
4
layer.c
4
layer.c
|
@ -106,8 +106,8 @@ void layer_switching(uint8_t fn_bits)
|
|||
// send only Fn key first
|
||||
host_swap_keyboard_report();
|
||||
host_clear_keyboard_report();
|
||||
host_add_code(keymap_fn_keycode(_fn_to_send)); // TODO: do all Fn keys
|
||||
host_set_mods(last_mods);
|
||||
host_add_code(keymap_fn_keycode(_fn_to_send)); // TODO: do all Fn keys
|
||||
host_send_keyboard_report();
|
||||
host_swap_keyboard_report();
|
||||
sent_fn |= _fn_to_send;
|
||||
|
@ -152,8 +152,8 @@ void layer_switching(uint8_t fn_bits)
|
|||
// send only Fn key first
|
||||
host_swap_keyboard_report();
|
||||
host_clear_keyboard_report();
|
||||
host_add_code(keymap_fn_keycode(fn_changed)); // TODO: do all Fn keys
|
||||
host_set_mods(last_mods);
|
||||
host_add_code(keymap_fn_keycode(fn_changed)); // TODO: do all Fn keys
|
||||
host_send_keyboard_report();
|
||||
host_swap_keyboard_report();
|
||||
sent_fn |= fn_changed;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue