Просмотр исходного кода

Merge remote-tracking branch 'origin/develop' into xap

QMK Bot 3 лет назад
Родитель
Сommit
9da8dbf8d6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      docs/feature_advanced_keycodes.md

+ 1 - 1
docs/feature_advanced_keycodes.md

@@ -91,7 +91,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 
 
     case KC_ESC:
     case KC_ESC:
         // Detect the activation of only Left Alt
         // 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) {
             if (record->event.pressed) {
                 // No need to register KC_LALT because it's already active.
                 // No need to register KC_LALT because it's already active.
                 // The Alt modifier will apply on this KC_TAB.
                 // The Alt modifier will apply on this KC_TAB.