#include "action_macro.h"
#include "action_util.h"
#include "action.h"
+#include "hook.h"
#ifdef DEBUG_ACTION
#include "debug.h"
if (!IS_NOEVENT(event)) {
dprint("\n---- action_exec: start -----\n");
dprint("EVENT: "); debug_event(event); dprintln();
+ hook_matrix_change(event);
}
keyrecord_t record = { .event = event };
case MODS_TAP_TOGGLE:
if (event.pressed) {
if (tap_count <= TAPPING_TOGGLE) {
- register_mods(mods);
+ if (mods & get_mods()) {
+ dprint("MODS_TAP_TOGGLE: toggle mods off\n");
+ unregister_mods(mods);
+ } else {
+ dprint("MODS_TAP_TOGGLE: toggle mods on\n");
+ register_mods(mods);
+ }
}
} else {
if (tap_count < TAPPING_TOGGLE) {
+ dprint("MODS_TAP_TOGGLE: release : unregister_mods\n");
unregister_mods(mods);
}
}