summaryrefslogtreecommitdiff
path: root/layer.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2011-02-13 23:58:12 +0900
committertmk <nobody@nowhere>2011-02-22 03:09:07 +0900
commit3015f191a5d9268cb5ca7a0256597d3d76f4d200 (patch)
tree901eb1e0ba6cf0dd1c476c847995d5a95ecb20a9 /layer.c
parent9a938eecbd2b70c970992583b5c16da717d8e254 (diff)
fixed: not to send key if fn_keycode is modifier
Diffstat (limited to 'layer.c')
-rw-r--r--layer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/layer.c b/layer.c
index 0fe06a4564..90314e4429 100644
--- a/layer.c
+++ b/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;