removing the call to lv_group_set_editing fixes keyboard focus. dont know what else it breaks.
This commit is contained in:
committed by
Raphael Coeffic
parent
92cb885018
commit
b4686686fc
+4
-4
@@ -64,10 +64,10 @@ class FormField : public Window
|
||||
{
|
||||
editMode = newEditMode;
|
||||
|
||||
if (lvobj != nullptr) {
|
||||
lv_group_t *grp = (lv_group_t *)lv_obj_get_group(lvobj);
|
||||
if (grp != nullptr) lv_group_set_editing(grp, editMode);
|
||||
}
|
||||
// if (lvobj != nullptr) {
|
||||
// lv_group_t *grp = (lv_group_t *)lv_obj_get_group(lvobj);
|
||||
// if (grp != nullptr) lv_group_set_editing(grp, editMode);
|
||||
// }
|
||||
|
||||
if (editMode && lvobj != nullptr) {
|
||||
lv_obj_add_state(lvobj, LV_STATE_EDITED | LV_STATE_FOCUSED);
|
||||
|
||||
Reference in New Issue
Block a user