aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/xd004/keymaps/system_and_media
diff options
context:
space:
mode:
authorSidney Bovet <sidney.bovet@gmail.com>2019-07-16 10:37:35 +0200
committerDrashna Jaelre <drashna@live.com>2019-07-16 01:37:35 -0700
commit97a3f806c4740213d7b133f0be7c2f51d228593b (patch)
tree6f61a6d748f7434adf896f5ae800df9c6552b815 /keyboards/xd004/keymaps/system_and_media
parentc44fc68297029da87233777aff6978d39caebbb1 (diff)
downloadfirmware-97a3f806c4740213d7b133f0be7c2f51d228593b.tar.gz
firmware-97a3f806c4740213d7b133f0be7c2f51d228593b.tar.bz2
firmware-97a3f806c4740213d7b133f0be7c2f51d228593b.zip
[Keymap] Fix advanced keymap readme and macro function (#6342)
Diffstat (limited to 'keyboards/xd004/keymaps/system_and_media')
-rw-r--r--keyboards/xd004/keymaps/system_and_media/keymap.c4
-rw-r--r--keyboards/xd004/keymaps/system_and_media/readme.md2
2 files changed, 2 insertions, 4 deletions
diff --git a/keyboards/xd004/keymaps/system_and_media/keymap.c b/keyboards/xd004/keymaps/system_and_media/keymap.c
index 740132639..60f0e15bb 100644
--- a/keyboards/xd004/keymaps/system_and_media/keymap.c
+++ b/keyboards/xd004/keymaps/system_and_media/keymap.c
@@ -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;
- tap_code_16(LALT(KC_F4); // Alt-F4
+ tap_code16(LALT(KC_F4)); // Alt-F4
} else {
tap_code(KC_ENTER); // Tap enter
}
- } else {
- unregister_code(KC_TAB);
}
alt_f4_timer = timer_read();
break;
diff --git a/keyboards/xd004/keymaps/system_and_media/readme.md b/keyboards/xd004/keymaps/system_and_media/readme.md
index 0fb3c61b6..d684d463c 100644
--- a/keyboards/xd004/keymaps/system_and_media/readme.md
+++ b/keyboards/xd004/keymaps/system_and_media/readme.md
@@ -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.