aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Đorđević <vomindoraan@gmail.com>2019-01-28 09:05:35 +0100
committerKonstantin Đorđević <vomindoraan@gmail.com>2019-03-02 15:15:52 +0100
commit6695c874fb8660989a129691bbffc6225be67362 (patch)
treeb3964887d395064376ad4706417e8f0cedc89690
parent6f386ca6ae82be9212700dbfeb73517d077bef5a (diff)
downloadfirmware-6695c874fb8660989a129691bbffc6225be67362.tar.gz
firmware-6695c874fb8660989a129691bbffc6225be67362.tar.bz2
firmware-6695c874fb8660989a129691bbffc6225be67362.zip
Add DST_MOD_MASK as a config option
-rw-r--r--users/konstantin/konstantin.c4
-rw-r--r--users/konstantin/konstantin.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/users/konstantin/konstantin.c b/users/konstantin/konstantin.c
index bf92a503e..5861574cb 100644
--- a/users/konstantin/konstantin.c
+++ b/users/konstantin/konstantin.c
@@ -30,13 +30,13 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
case DST_P_R:
(record->event.pressed ? register_code16 : unregister_code16)(
- (get_mods() & MOD_MASK_CTRL) ? DST_RMV : DST_PRV
+ (get_mods() & DST_MOD_MASK) ? DST_RMV : DST_PRV
);
return false;
case DST_N_A:
(record->event.pressed ? register_code16 : unregister_code16)(
- (get_mods() & MOD_MASK_CTRL) ? DST_ADD : DST_NXT
+ (get_mods() & DST_MOD_MASK) ? DST_ADD : DST_NXT
);
return false;
diff --git a/users/konstantin/konstantin.h b/users/konstantin/konstantin.h
index 3ca4f401e..a649e4f79 100644
--- a/users/konstantin/konstantin.h
+++ b/users/konstantin/konstantin.h
@@ -27,6 +27,9 @@
#define DST_RMV LCTL(LGUI(KC_F4))
#define DST_PRV LCTL(LGUI(KC_LEFT))
#define DST_NXT LCTL(LGUI(KC_RGHT))
+#ifndef DST_MOD_MASK
+ #define DST_MOD_MASK MOD_MASK_CTRL
+#endif
#define LCT_CPS LCTL_T(KC_CAPS)