revert(event): use original_target and target to follow JS conventions
fixes #4050
This commit is contained in:
@@ -179,7 +179,7 @@ static void msgbox_create(void)
|
||||
static void msgbox_event_cb(lv_event_t * e)
|
||||
{
|
||||
lv_event_code_t code = lv_event_get_code(e);
|
||||
lv_obj_t * msgbox = lv_event_get_target(e);
|
||||
lv_obj_t * msgbox = lv_event_get_current_target(e);
|
||||
|
||||
if(code == LV_EVENT_VALUE_CHANGED) {
|
||||
const char * txt = lv_msgbox_get_active_btn_text(msgbox);
|
||||
|
||||
@@ -1254,7 +1254,7 @@ static void calendar_event_cb(lv_event_t * e)
|
||||
{
|
||||
lv_event_code_t code = lv_event_get_code(e);
|
||||
lv_obj_t * ta = lv_event_get_user_data(e);
|
||||
lv_obj_t * obj = lv_event_get_target(e);
|
||||
lv_obj_t * obj = lv_event_get_current_target(e);
|
||||
if(code == LV_EVENT_VALUE_CHANGED) {
|
||||
lv_calendar_date_t d;
|
||||
lv_calendar_get_pressed_date(obj, &d);
|
||||
|
||||
Reference in New Issue
Block a user