Skip to content

Commit

Permalink
Update code example to match description (#20528)
Browse files Browse the repository at this point in the history
  • Loading branch information
filterpaper committed Apr 23, 2023
1 parent ab4013a commit e1afcda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/feature_advanced_keycodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e1afcda

Please sign in to comment.