From 40b2edf19c16821d252b690c8bd8ca840960a78b Mon Sep 17 00:00:00 2001 From: Pascal Getreuer Date: Sat, 28 Jun 2025 18:03:27 -0700 Subject: [PATCH] Add new keycodes to vial_ensure_keycode.h. --- quantum/vial.c | 3 ++- quantum/vial_ensure_keycode.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/quantum/vial.c b/quantum/vial.c index 1b15e13c75..42eb4c5e2a 100644 --- a/quantum/vial.c +++ b/quantum/vial.c @@ -765,7 +765,8 @@ uint16_t get_alt_repeat_key_keycode_user(uint16_t keycode, uint8_t mods) { // If this entry is the default alt key and allowed mods are satisfied, // use it if no there is no other match. - if ((options & vial_arep_option_default_to_this_alt_key) != 0 && best_fit < 0 && + if ((options & vial_arep_option_default_to_this_alt_key) != 0 && + best_fit == -1 && alt_keycode == KC_TRNS && alt_repeat_key_mods_match(mods, 0, entry->allowed_mods, options)) { alt_keycode = (entry->alt_required_mods << 8) | entry->alt_keycode; } diff --git a/quantum/vial_ensure_keycode.h b/quantum/vial_ensure_keycode.h index 0f31036e4e..9edd478748 100644 --- a/quantum/vial_ensure_keycode.h +++ b/quantum/vial_ensure_keycode.h @@ -815,7 +815,8 @@ _Static_assert(QK_CAPS_WORD_TOGGLE == 0x7C73, ""); _Static_assert(FN_MO13 == 0x7C77, ""); _Static_assert(FN_MO23 == 0x7C78, ""); - +_Static_assert(QK_REPEAT_KEY == 0x7C79, ""); +_Static_assert(QK_ALT_REPEAT_KEY == 0x7C7A, ""); _Static_assert(QK_LAYER_LOCK == 0x7C7B, ""); /* Ensure that we have 64 USERxx keycodes */