menu: allow for Unicode accelerators

This commit is contained in:
Alex Chernika 2026-04-13 23:06:08 +02:00
parent cea22422d5
commit 1c646af144
No known key found for this signature in database
GPG key ID: 6029FAD8ABFB076A
3 changed files with 32 additions and 34 deletions

View file

@ -23,7 +23,7 @@ struct menuitem {
char *text;
char *icon_name;
const char *arrow;
char accelerator;
uint32_t accelerator;
struct menu *parent;
struct menu *submenu;
bool selectable;
@ -78,7 +78,7 @@ void menu_item_select_previous(void);
* Return: a boolean value that represents whether the newly selected item
* needs to be executed.
*/
bool menu_item_select_by_accelerator(char accelerator);
bool menu_item_select_by_accelerator(uint32_t accelerator);
void menu_submenu_enter(void);
void menu_submenu_leave(void);