mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
lv_indev: do not leave edit mode manually on POINTER release
This commit is contained in:
parent
a3bfdb240e
commit
3a78360b62
@ -876,12 +876,8 @@ static void indev_proc_release(lv_indev_proc_t * proc)
|
||||
|
||||
if(proc->reset_query != 0) return;
|
||||
|
||||
/*Handle click focus*/
|
||||
/*Handle click focus*/
|
||||
#if LV_USE_GROUP
|
||||
/*Edit mode is not used by POINTER devices. So leave edit mode if we are in it*/
|
||||
lv_group_t * g = lv_obj_get_group(proc->types.pointer.act_obj);
|
||||
if(lv_group_get_editing(g)) lv_group_set_editing(g, false);
|
||||
|
||||
/*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) ==
|
||||
false) { /*Respect the click focus protection*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user