Changeset 5de852c in mainline for uspace/app/edit/edit.c


Ignore:
Timestamp:
2022-01-11T13:12:15Z (2 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/app/edit/edit.c

    r59768c7 r5de852c  
    22302230        pane.keymod = event->mods;
    22312231
     2232        if (ui_window_def_kbd(window, event) == ui_claimed)
     2233                return;
     2234
    22322235        if (event->type == KEY_PRESS) {
    22332236                key_handle_press(event);
Note: See TracChangeset for help on using the changeset viewer.