Changeset 5de852c in mainline for uspace/lib/ui/test/menubar.c


Ignore:
Timestamp:
2022-01-11T13:12:15Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bfc0fc6
Parents:
59768c7
git-author:
Jiri Svoboda <jiri@…> (2022-01-10 20:11:54)
git-committer:
Jiri Svoboda <jiri@…> (2022-01-11 13:12:15)
Message:

Coordinate keyboard event delivery between application and UI framework

If an application sets its own keyboard event handler, it needs to call
ui_window_def_kbd() to deliver events to the window's UI control tree.
Menubar should be able to capture these events so that they are not
accidentally acted upon by the application keyboard handler.

File:
1 edited

Legend:

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

    r59768c7 r5de852c  
    188188        event.type = KEY_PRESS;
    189189        event.key = KC_ESCAPE;
    190         claimed = ui_menu_kbd_pos_event(mbar, &event);
     190        claimed = ui_menu_bar_kbd_event(mbar, &event);
    191191        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    192192        PCUT_ASSERT_EQUALS(ui_claimed, claimed);
Note: See TracChangeset for help on using the changeset viewer.