From 6d191635d08f8d1b4be12786c2e0158bd6674f28 Mon Sep 17 00:00:00 2001 From: Konstantin Đorđević Date: Thu, 5 Sep 2019 05:38:54 +0200 Subject: Add personal Doro67 multi keymap, fix bug in KBD6X keymap (#6674) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- users/konstantin/konstantin.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'users') diff --git a/users/konstantin/konstantin.c b/users/konstantin/konstantin.c index 98b11b3a91..9cee25ac66 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 -- cgit v1.2.3