lv_indev fix
This commit is contained in:
@@ -878,6 +878,10 @@ static void indev_proc_release(lv_indev_proc_t * proc)
|
|||||||
|
|
||||||
/*Handle click focus*/
|
/*Handle click focus*/
|
||||||
#if LV_USE_GROUP
|
#if LV_USE_GROUP
|
||||||
|
/* Edit mode is not used by POINTER devices.
|
||||||
|
* So leave edit mode if the focused object is still `act_obj`*/
|
||||||
|
lv_group_t * g = lv_obj_get_group(proc->types.pointer.act_obj);
|
||||||
|
|
||||||
/*Check, if the parent is in a group focus on it.*/
|
/*Check, if the parent is in a group focus on it.*/
|
||||||
if(lv_obj_is_protected(proc->types.pointer.act_obj, LV_PROTECT_CLICK_FOCUS) ==
|
if(lv_obj_is_protected(proc->types.pointer.act_obj, LV_PROTECT_CLICK_FOCUS) ==
|
||||||
false) { /*Respect the click focus protection*/
|
false) { /*Respect the click focus protection*/
|
||||||
|
|||||||
Reference in New Issue
Block a user