diff options
author | Christoph Cullmann <cullmann@kde.org> | 2023-09-20 15:09:32 +0200 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2023-09-20 15:09:32 +0200 |
commit | 0894f929ae5866b648ff1f6a9808d6dfd748a64c (patch) | |
tree | 06279575e46017c6415f07cd120970015a2d8c34 /common/keymap.h | |
parent | 835a4e7bfbc26868f65e077a39da409a65ef6885 (diff) |
try again a lighter setup
no achordion
Diffstat (limited to 'common/keymap.h')
-rw-r--r-- | common/keymap.h | 36 |
1 files changed, 11 insertions, 25 deletions
diff --git a/common/keymap.h b/common/keymap.h index f42da27..8b5fa46 100644 --- a/common/keymap.h +++ b/common/keymap.h @@ -71,30 +71,16 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { }; -// -// improve home row modifiers via achordion -// - -#include "achordion.h" - -bool process_record_user(uint16_t keycode, keyrecord_t* record) -{ - if (!process_achordion(keycode, record)) { - return false; +bool get_permissive_hold(uint16_t keycode, keyrecord_t *record) { + switch (keycode) { + case LT(_SYM, KC_SCLN): + case LT(_NUM, KC_SPC): + case LT(_NAV, KC_E): + case LT(_FN, KC_MINS): + // Immediately select the hold action when another key is tapped. + return true; + default: + // Do not select the hold action when another key is tapped. + return false; } - - return true; -} - -void matrix_scan_user(void) -{ - achordion_task(); -} - -bool achordion_chord(uint16_t tap_hold_keycode, - keyrecord_t* tap_hold_record, - uint16_t other_keycode, - keyrecord_t* other_record) -{ - return my_on_left_hand(tap_hold_record->event.key) != my_on_left_hand(other_record->event.key); } |