]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Add DST_MOD_MASK as a config option
authorKonstantin Đorđević <vomindoraan@gmail.com>
Mon, 28 Jan 2019 08:05:35 +0000 (09:05 +0100)
committerKonstantin Đorđević <vomindoraan@gmail.com>
Sat, 2 Mar 2019 14:15:52 +0000 (15:15 +0100)
users/konstantin/konstantin.c
users/konstantin/konstantin.h

index bf92a503e6e2d9e1071f14118589f0fec4e93a09..5861574cba72fcb9be8b99ed0e71c0ab546f1947 100644 (file)
@@ -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;
 
index 3ca4f401e01db9a881c83151118f90284a1a6a47..a649e4f79d899975284e9d9432ac2c5ac1b35f77 100644 (file)
@@ -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)