From d633cf3ccbf1aed229ef92bdc2f2a1f4f67dd0ad Mon Sep 17 00:00:00 2001 From: Konstantin Đorđević Date: Tue, 3 Sep 2019 17:42:05 +0200 Subject: [Keymap] Update personal userspace and keymaps (#6654) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Enable Fn layer tap dances only if LAYER_FN is defined * Update KBD6X keymap spacing to match LAYOUT spacing * Add regular FNLK to userspace, update keymap comment labels * Rename KC_BRK → BREAK, KC_SYSR → SYSRQ in userspace * Change mousekey positions in KBD6X * Disable Console in KBD6X to reduce firmware size * Return false in process_record_* only when overriding existing keys * Fix Caps light not working after LSFT_FN * Refactor Fn/Caps light, fix sequencing issues --- users/konstantin/konstantin.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'users/konstantin/konstantin.c') diff --git a/users/konstantin/konstantin.c b/users/konstantin/konstantin.c index c56c9490f..98b11b3a9 100644 --- a/users/konstantin/konstantin.c +++ b/users/konstantin/konstantin.c @@ -40,7 +40,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { if (record->event.pressed && record->tap.count == TAPPING_TOGGLE) { fn_lock = !IS_LAYER_ON(L_FN); // Fn layer will be toggled after this } - return true; + break; #endif case KC_ESC: @@ -58,7 +58,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { } #endif } - return true; + break; case CLEAR: if (record->event.pressed) { @@ -66,25 +66,24 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { SEND_STRING(SS_LCTRL("a") SS_TAP(X_DELETE)); ) } - return false; + break; case DST_P_R: kc = (get_mods() & DST_MOD_MASK) ? DST_REM : DST_PRV; CLEAN_MODS( (record->event.pressed ? register_code16 : unregister_code16)(kc); ) - return false; + break; case DST_N_A: kc = (get_mods() & DST_MOD_MASK) ? DST_ADD : DST_NXT; CLEAN_MODS( (record->event.pressed ? register_code16 : unregister_code16)(kc); ) - return false; - - default: - return true; + break; } + + return true; } __attribute__((weak)) -- cgit v1.2.3-70-g09d2