try to improve the thumb keys
This commit is contained in:
parent
93efb01504
commit
c7f035fbfe
|
@ -46,6 +46,9 @@
|
||||||
// use permissive hold together with achordion
|
// use permissive hold together with achordion
|
||||||
#define PERMISSIVE_HOLD
|
#define PERMISSIVE_HOLD
|
||||||
|
|
||||||
|
// special handle thumb keys
|
||||||
|
#define HOLD_ON_OTHER_KEY_PRESS_PER_KEY
|
||||||
|
|
||||||
// delay hold/release to not mess up software
|
// delay hold/release to not mess up software
|
||||||
#define TAP_CODE_DELAY 10
|
#define TAP_CODE_DELAY 10
|
||||||
|
|
||||||
|
|
|
@ -71,6 +71,20 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
bool get_hold_on_other_key_press(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 pressed.
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
// Do not select the hold action when another key is pressed.
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#include "achordion.h"
|
#include "achordion.h"
|
||||||
|
|
||||||
bool process_record_user(uint16_t keycode, keyrecord_t* record) {
|
bool process_record_user(uint16_t keycode, keyrecord_t* record) {
|
||||||
|
|
Loading…
Reference in a new issue