Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 7481ee19 in mainline for uspace/lib/ui/src/window.c


Ignore:
Timestamp:
2021-06-23T08:15:00Z (5 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
a977e37
Parents:
034ce6bb
git-author:
Jiri Svoboda <jiri@…> (2021-06-22 17:14:40)
git-committer:
Jiri Svoboda <jiri@…> (2021-06-23 08:15:00)
Message:

Basic editable text entry

File:
1 edited

Legend:

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

    r034ce6bb r7481ee19  
    871871        if (window->cb != NULL && window->cb->kbd != NULL)
    872872                window->cb->kbd(window, window->arg, kbd);
     873        else
     874                return ui_window_def_kbd(window, kbd);
    873875}
    874876
     
    907909        else
    908910                return ui_window_def_unfocus(window);
     911}
     912
     913/** Default window keyboard event routine.
     914 *
     915 * @param window Window
     916 */
     917void ui_window_def_kbd(ui_window_t *window, kbd_event_t *kbd)
     918{
     919        if (window->control != NULL)
     920                ui_control_kbd_event(window->control, kbd);
    909921}
    910922
Note: See TracChangeset for help on using the changeset viewer.