]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
[Keymap] Fix advanced keymap readme and macro function (#6342)
authorSidney Bovet <sidney.bovet@gmail.com>
Tue, 16 Jul 2019 08:37:35 +0000 (10:37 +0200)
committerDrashna Jaelre <drashna@live.com>
Tue, 16 Jul 2019 08:37:35 +0000 (01:37 -0700)
keyboards/xd004/keymaps/system_and_media/keymap.c
keyboards/xd004/keymaps/system_and_media/readme.md

index 740132639c9f603cd86cce1fcb1449505d62a412..60f0e15bbe36c7104f53604f622e69e98330c68b 100644 (file)
@@ -41,12 +41,10 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
             if (record->event.pressed) {
                 if (!is_alt_f4_active) {
                     is_alt_f4_active = true;
             if (record->event.pressed) {
                 if (!is_alt_f4_active) {
                     is_alt_f4_active = true;
-                    tap_code_16(LALT(KC_F4);  // Alt-F4
+                    tap_code16(LALT(KC_F4));  // Alt-F4
                 } else {
                     tap_code(KC_ENTER);  // Tap enter
                 }
                 } else {
                     tap_code(KC_ENTER);  // Tap enter
                 }
-            } else {
-                unregister_code(KC_TAB);
             }
             alt_f4_timer = timer_read();
             break;
             }
             alt_f4_timer = timer_read();
             break;
index 0fb3c61b6c325a0a09cb8415b4ee403976d02258..d684d463c6cd7c2320511162ff29be39adad7ca7 100644 (file)
@@ -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.