]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - docs/config_options.md
Fix Command feature: use get_mods() instead of keyboard_report->mods (#4955)
[qmk_firmware.git] / docs / config_options.md
index f5c2e76e7e9236877e9e4c45ee212a32e6d17815..5e2de6d048610be2f2f3297c658be4023ad34706 100644 (file)
@@ -87,7 +87,7 @@ This is a C header file that is one of the first things included, and will persi
   * mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap
 * `#define LOCKING_RESYNC_ENABLE`
   * tries to keep switch state consistent with keyboard LED state
-* `#define IS_COMMAND() ( keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) )`
+* `#define IS_COMMAND() (get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)))`
   * key combination that allows the use of magic commands (useful for debugging)
 * `#define USB_MAX_POWER_CONSUMPTION`
   * sets the maximum power (in mA) over USB for the device (default: 500)