aboutsummaryrefslogtreecommitdiffstats
path: root/users/konstantin
diff options
context:
space:
mode:
authorKonstantin Đorđević <vomindoraan@gmail.com>2019-09-05 05:38:54 +0200
committerfauxpark <fauxpark@gmail.com>2019-09-05 13:38:54 +1000
commit6d191635d08f8d1b4be12786c2e0158bd6674f28 (patch)
tree2ec85ead91befb8064dbb9f55f9d9428c5446280 /users/konstantin
parentdf5b2d204be8c35f5d967b4c3d9f84c7e74373de (diff)
downloadfirmware-6d191635d08f8d1b4be12786c2e0158bd6674f28.tar.gz
firmware-6d191635d08f8d1b4be12786c2e0158bd6674f28.tar.bz2
firmware-6d191635d08f8d1b4be12786c2e0158bd6674f28.zip
Add personal Doro67 multi keymap, fix bug in KBD6X keymap (#6674)
* Add missing void parameter declarations to *_light functions * Add doro67/multi:konstantin keymap * Allow FNLK to be canceled with Esc * Function layer → Fn layer in keymap comments
Diffstat (limited to 'users/konstantin')
-rw-r--r--users/konstantin/konstantin.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/users/konstantin/konstantin.c b/users/konstantin/konstantin.c
index 98b11b3a9..9cee25ac6 100644
--- a/users/konstantin/konstantin.c
+++ b/users/konstantin/konstantin.c
@@ -36,9 +36,15 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
#ifdef LAYER_FN
static bool fn_lock = false;
+ case FNLK:
+ if (record->event.pressed) {
+ fn_lock = !IS_LAYER_ON(L_FN); // Fn layer will be toggled after this
+ }
+ break;
+
case FN_FNLK:
if (record->event.pressed && record->tap.count == TAPPING_TOGGLE) {
- fn_lock = !IS_LAYER_ON(L_FN); // Fn layer will be toggled after this
+ fn_lock = !IS_LAYER_ON(L_FN);
}
break;
#endif