menu: fix wrong accelerator for capital letters

This commit is contained in:
Alex Chernika 2026-04-11 02:14:35 +02:00
parent ac72c105cc
commit 60a3963ba9
No known key found for this signature in database
GPG key ID: 6029FAD8ABFB076A

View file

@ -148,7 +148,7 @@ item_create(struct menu *menu, const char *text, const char *icon_name, bool sho
menuitem->accelerator = tolower(*it); menuitem->accelerator = tolower(*it);
while (*it != '\0') { while (*it != '\0') {
if (*it == '_' && *it != '\0') { if (*it == '_' && *it != '\0') {
menuitem->accelerator = *(++it); menuitem->accelerator = tolower(*(++it));
break; break;
} }
it++; it++;