diff options
author | tmk <nobody@nowhere> | 2011-02-13 23:58:12 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2011-02-22 03:09:07 +0900 |
commit | 3015f191a5d9268cb5ca7a0256597d3d76f4d200 (patch) | |
tree | 901eb1e0ba6cf0dd1c476c847995d5a95ecb20a9 /layer.c | |
parent | 9a938eecbd2b70c970992583b5c16da717d8e254 (diff) |
fixed: not to send key if fn_keycode is modifier
Diffstat (limited to 'layer.c')
-rw-r--r-- | layer.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |