diff options
author | Konstantin Đorđević <vomindoraan@gmail.com> | 2019-01-28 09:04:47 +0100 |
---|---|---|
committer | Konstantin Đorđević <vomindoraan@gmail.com> | 2019-03-02 15:15:51 +0100 |
commit | 6f386ca6ae82be9212700dbfeb73517d077bef5a (patch) | |
tree | a8b14097f72224c92a83c94dd835c1e9a7887007 /users/konstantin/konstantin.c | |
parent | 6e48ea082dc27ac25bd0422e974cefe7a00788f6 (diff) |
Change how desktop commands work
Diffstat (limited to 'users/konstantin/konstantin.c')
-rw-r--r-- | users/konstantin/konstantin.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/users/konstantin/konstantin.c b/users/konstantin/konstantin.c index 47596279c3..bf92a503e6 100644 --- a/users/konstantin/konstantin.c +++ b/users/konstantin/konstantin.c @@ -28,6 +28,18 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { } return false; + case DST_P_R: + (record->event.pressed ? register_code16 : unregister_code16)( + (get_mods() & MOD_MASK_CTRL) ? 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 + ); + return false; + #ifdef LAYER_FN static bool fn_lock; |