Changeset 61643c8 in mainline for uspace/lib/ui/src/menubar.c


Ignore:
Timestamp:
2023-09-13T17:32:23Z (13 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
112f70a
Parents:
1af103e
Message:

Fix accelerator keys not working when Caps Lock is enabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/menubar.c

    r1af103e r61643c8  
    3535
    3636#include <adt/list.h>
     37#include <ctype.h>
    3738#include <errno.h>
    3839#include <gfx/color.h>
     
    414415        while (mdd != NULL) {
    415416                maccel = ui_menu_dd_get_accel(mdd);
    416                 if (c == maccel) {
     417                if ((char32_t)tolower(c) == maccel) {
    417418                        ui_menu_bar_select(mbar, mdd, true, kbd_id);
    418419                        return;
Note: See TracChangeset for help on using the changeset viewer.