diff --git a/app/keyboard.c b/app/keyboard.c index 1509298..5b624cc 100644 --- a/app/keyboard.c +++ b/app/keyboard.c @@ -114,8 +114,9 @@ static void transition_to(struct list_item * const p_item, const enum key_state if (reg_is_bit_set(REG_ID_CFG, CFG_USE_MODS)) { const bool shift = (self.mods[KEY_MOD_ID_SHL] || self.mods[KEY_MOD_ID_SHR]) | self.capslock; const bool alt = self.mods[KEY_MOD_ID_ALT] | self.numlock; + const bool is_button = (key <= KEY_BTN_RIGHT1) || ((key >= KEY_BTN_LEFT2) && (key <= KEY_BTN_RIGHT2)); - if (alt) { + if (alt && !is_button) { key = p_entry->alt; } else if (!shift && (key >= 'A' && key <= 'Z')) { key = (key + ' ');