|
@@ -258,10 +258,10 @@ void process_action(keyrecord_t *record, action_t action)
|
|
if (event.pressed) {
|
|
if (event.pressed) {
|
|
if (tap_count == 0) {
|
|
if (tap_count == 0) {
|
|
dprint("MODS_TAP: Oneshot: 0\n");
|
|
dprint("MODS_TAP: Oneshot: 0\n");
|
|
- register_mods(mods);
|
|
|
|
|
|
+ register_mods(mods | get_oneshot_mods());
|
|
} else if (tap_count == 1) {
|
|
} else if (tap_count == 1) {
|
|
dprint("MODS_TAP: Oneshot: start\n");
|
|
dprint("MODS_TAP: Oneshot: start\n");
|
|
- set_oneshot_mods(mods);
|
|
|
|
|
|
+ set_oneshot_mods(mods | get_oneshot_mods());
|
|
#if defined(ONESHOT_TAP_TOGGLE) && ONESHOT_TAP_TOGGLE > 1
|
|
#if defined(ONESHOT_TAP_TOGGLE) && ONESHOT_TAP_TOGGLE > 1
|
|
} else if (tap_count == ONESHOT_TAP_TOGGLE) {
|
|
} else if (tap_count == ONESHOT_TAP_TOGGLE) {
|
|
dprint("MODS_TAP: Toggling oneshot");
|
|
dprint("MODS_TAP: Toggling oneshot");
|
|
@@ -270,7 +270,7 @@ void process_action(keyrecord_t *record, action_t action)
|
|
register_mods(mods);
|
|
register_mods(mods);
|
|
#endif
|
|
#endif
|
|
} else {
|
|
} else {
|
|
- register_mods(mods);
|
|
|
|
|
|
+ register_mods(mods | get_oneshot_mods());
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
if (tap_count == 0) {
|
|
if (tap_count == 0) {
|