commit e1afcda1c05f1004f7a19597d06a73e0bb73150a
parent ab4013a69ef35bf3c8d272f9f61f9a627fcdcec1
Author: Albert Y <76888457+filterpaper@users.noreply.github.com>
Date: Mon, 24 Apr 2023 02:56:45 +0800
Update code example to match description (#20528)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/feature_advanced_keycodes.md b/docs/feature_advanced_keycodes.md
@@ -91,7 +91,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
case KC_ESC:
// Detect the activation of only Left Alt
- if ((get_mods() & MOD_BIT(KC_LALT)) == MOD_BIT(KC_LALT)) {
+ if (get_mods() == MOD_BIT(KC_LALT)) {
if (record->event.pressed) {
// No need to register KC_LALT because it's already active.
// The Alt modifier will apply on this KC_TAB.