summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJez Cope <jezcope@users.noreply.github.com>2019-05-04 18:46:44 +0200
committerDrashna Jaelre <drashna@live.com>2019-05-04 18:46:44 +0200
commit9d97e47df4de36adae48c57474f3836acb78195d (patch)
treecf3aeb2da658343e2eff0712f17c1aa94b6fa96c
parente73587cfd08b2bd73987e7f762194079875df93a (diff)
downloadqmk_firmware-9d97e47df4de36adae48c57474f3836acb78195d.tar.gz
qmk_firmware-9d97e47df4de36adae48c57474f3836acb78195d.tar.xz
[Docs] Update Super ALT↯TAB to remove use of unregister_code16 (#5766)
The code as originally listed didn't work for me, but replacing `unregister_code16(LALT(KC_TAB));` with `unregister_code(KC_LALT);` fixes the problem and causes the macro to work as intended. Thanks to folks on Discord for helping me figure this out.
-rw-r--r--docs/feature_macros.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/feature_macros.md b/docs/feature_macros.md
index fe45016e3..d81c3c655 100644
--- a/docs/feature_macros.md
+++ b/docs/feature_macros.md
@@ -230,7 +230,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
void matrix_scan_user(void) { # The very important timer.
if (is_alt_tab_active) {
if (timer_elapsed(alt_tab_timer) > 1000) {
- unregister_code16(LALT(KC_TAB));
+ unregister_code(KC_LALT);
is_alt_tab_active = false;
}
}