[Keymap] Fix advanced keymap readme and macro function (#6342)
This commit is contained in:
parent
c44fc68297
commit
97a3f806c4
@ -41,12 +41,10 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||||||
if (record->event.pressed) {
|
if (record->event.pressed) {
|
||||||
if (!is_alt_f4_active) {
|
if (!is_alt_f4_active) {
|
||||||
is_alt_f4_active = true;
|
is_alt_f4_active = true;
|
||||||
tap_code_16(LALT(KC_F4); // Alt-F4
|
tap_code16(LALT(KC_F4)); // Alt-F4
|
||||||
} else {
|
} else {
|
||||||
tap_code(KC_ENTER); // Tap enter
|
tap_code(KC_ENTER); // Tap enter
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
unregister_code(KC_TAB);
|
|
||||||
}
|
}
|
||||||
alt_f4_timer = timer_read();
|
alt_f4_timer = timer_read();
|
||||||
break;
|
break;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Default Keymap for XD004 PCB
|
# Slightly more advanced keymap for XD004 PCB
|
||||||
|
|
||||||
A somehow more useful keymap, allowing one to move across virtual desktops on Windows, etc.
|
A somehow more useful keymap, allowing one to move across virtual desktops on Windows, etc.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user