diff options
author | Christoph Cullmann <cullmann@kde.org> | 2023-06-23 13:45:12 +0200 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2023-06-23 13:45:12 +0200 |
commit | b2e5a3f645f6b70560254eed69bea22d8c3cae63 (patch) | |
tree | 42c584df250f375f4c1557a35bf43d5a8dbaf96a /ferris/keymap.c | |
parent | c5a1f32c34057d53ad7b2d7a35a449d8b32bf20f (diff) |
try get_hold_on_other_key_press instead of achordion
Diffstat (limited to 'ferris/keymap.c')
-rw-r--r-- | ferris/keymap.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/ferris/keymap.c b/ferris/keymap.c index 2722f29..cfa33cd 100644 --- a/ferris/keymap.c +++ b/ferris/keymap.c @@ -76,17 +76,16 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { }; -// better handling of home row modifiers -// see https://getreuer.info/posts/keyboards/achordion/index.html - -#include "achordion.h" -#include "achordion.c" - -bool process_record_user(uint16_t keycode, keyrecord_t* record) { - if (!process_achordion(keycode, record)) { return false; } - return true; -} - -void matrix_scan_user(void) { - achordion_task(); +// Configure hold on other key press per key +bool get_hold_on_other_key_press(uint16_t keycode, keyrecord_t *record) { + switch (keycode) { + // thumb buttons should be reactive + case MO(_SYM): + case LT(_NUM, KC_SPC): + case LT(_NAV, KC_BSPC): + case MO(_FN): + return true; + default: + return false; + } } |