mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
fix(ui): use the root widget as the default event target
This commit is contained in:
@@ -918,7 +918,7 @@ static int ui_on_keyboard_event(ui_event_t *origin_event)
|
||||
|
||||
e.target = ui_events.targets[UI_WIDGET_STATUS_FOCUS];
|
||||
if (!e.target) {
|
||||
return -1;
|
||||
e.target = ui_root();
|
||||
}
|
||||
e.cancel_bubble = false;
|
||||
ui_widget_emit_event(e.target, e, NULL);
|
||||
|
||||
Reference in New Issue
Block a user