core: Fix TAP_KEY(CapsLock) for MacOS #659
This commit is contained in:
parent
ab083c7ecf
commit
02664fe72a
1 changed files with 14 additions and 0 deletions
|
|
@ -163,6 +163,13 @@ void process_action(keyrecord_t *record)
|
||||||
} else {
|
} else {
|
||||||
dprint("MODS_TAP: Tap: register_code\n");
|
dprint("MODS_TAP: Tap: register_code\n");
|
||||||
register_code(action.key.code);
|
register_code(action.key.code);
|
||||||
|
|
||||||
|
// Delay for MacOS #659
|
||||||
|
if (action.key.code == KC_CAPSLOCK ||
|
||||||
|
action.key.code == KC_NUMLOCK ||
|
||||||
|
action.key.code == KC_SCROLLLOCK) {
|
||||||
|
wait_ms(100);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
dprint("MODS_TAP: No tap: add_mods\n");
|
dprint("MODS_TAP: No tap: add_mods\n");
|
||||||
|
|
@ -294,6 +301,13 @@ void process_action(keyrecord_t *record)
|
||||||
if (tap_count > 0) {
|
if (tap_count > 0) {
|
||||||
dprint("KEYMAP_TAP_KEY: Tap: register_code\n");
|
dprint("KEYMAP_TAP_KEY: Tap: register_code\n");
|
||||||
register_code(action.layer_tap.code);
|
register_code(action.layer_tap.code);
|
||||||
|
|
||||||
|
// Delay for MacOS #659
|
||||||
|
if (action.layer_tap.code == KC_CAPSLOCK ||
|
||||||
|
action.layer_tap.code == KC_NUMLOCK ||
|
||||||
|
action.layer_tap.code == KC_SCROLLLOCK) {
|
||||||
|
wait_ms(100);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
dprint("KEYMAP_TAP_KEY: No tap: On on press\n");
|
dprint("KEYMAP_TAP_KEY: No tap: On on press\n");
|
||||||
layer_on(action.layer_tap.val);
|
layer_on(action.layer_tap.val);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue