summaryrefslogtreecommitdiff
path: root/common/keymap.h
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2023-10-13 23:05:38 +0200
committerChristoph Cullmann <cullmann@kde.org>2023-10-13 23:05:38 +0200
commitc7f035fbfecc622fa1e2bea9bab8fdc6145be1f6 (patch)
tree47e374502ebe59ae34ffff25243852d07beb72b0 /common/keymap.h
parent93efb01504231dcde7254e43c3223ac9e09947fb (diff)
try to improve the thumb keys
Diffstat (limited to 'common/keymap.h')
-rw-r--r--common/keymap.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/common/keymap.h b/common/keymap.h
index 0fd14dc..28842a7 100644
--- a/common/keymap.h
+++ b/common/keymap.h
@@ -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"
bool process_record_user(uint16_t keycode, keyrecord_t* record) {