1
0
Fork 0

Change how desktop commands work

This commit is contained in:
Konstantin Đorđević 2019-01-28 09:04:47 +01:00
parent 6e48ea082d
commit 6f386ca6ae
6 changed files with 28 additions and 11 deletions

View file

@ -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;