mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-03 20:48:02 +08:00
improve edit
This commit is contained in:
parent
8c3ab713f8
commit
4f69a99851
@ -619,6 +619,14 @@ static ret_t edit_on_key_down(widget_t* widget, key_event_t* e) {
|
||||
if (app_type != APP_DESKTOP && app_type != APP_MOBILE) {
|
||||
edit_input_char(widget, (wchar_t)key);
|
||||
}
|
||||
} else {
|
||||
if (widget->emitter != NULL) {
|
||||
void* saved_target = e->e.target;
|
||||
|
||||
e->e.target = widget;
|
||||
emitter_dispatch(widget->emitter, (event_t*)e);
|
||||
e->e.target = saved_target;
|
||||
}
|
||||
}
|
||||
|
||||
return RET_STOP;
|
||||
|
Loading…
Reference in New Issue
Block a user