Changeset 8a9a41e in mainline for uspace/lib/ui/src/control.c


Ignore:
Timestamp:
2021-10-24T08:28:43Z (2 years ago)
Author:
GitHub <noreply@…>
Children:
f628215
Parents:
2ce943a (diff), cd981f2a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Erik Kučák <35500848+Riko196@…> (2021-10-24 08:28:43)
git-committer:
GitHub <noreply@…> (2021-10-24 08:28:43)
Message:

Merge branch 'HelenOS:master' into master

File:
1 edited

Legend:

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

    r2ce943a r8a9a41e  
    11/*
    2  * Copyright (c) 2020 Jiri Svoboda
     2 * Copyright (c) 2021 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    3535
    3636#include <errno.h>
     37#include <io/kbd_event.h>
    3738#include <io/pos_event.h>
    3839#include <stdlib.h>
     
    9192}
    9293
     94/** Deliver keyboard event to UI control.
     95 *
     96 * @param control Control
     97 * @param kbd_event Keyboard event
     98 * @return @c ui_claimed iff the event is claimed
     99 */
     100ui_evclaim_t ui_control_kbd_event(ui_control_t *control, kbd_event_t *event)
     101{
     102        if (control->ops->kbd_event != NULL)
     103                return control->ops->kbd_event(control->ext, event);
     104        else
     105                return ui_unclaimed;
     106}
     107
    93108/** Paint UI control.
    94109 *
Note: See TracChangeset for help on using the changeset viewer.