BigW Consortium Gitlab

Commit 79e3951a by Gabor Kiss-Vamosi

lv_indev: keyboard ignor key == 0

parent 4ca6a04c
...@@ -238,8 +238,9 @@ static void indev_proc_task(void * param) ...@@ -238,8 +238,9 @@ static void indev_proc_task(void * param)
indev_proc_point(&i->state); indev_proc_point(&i->state);
} }
else if (i->driver.type == LV_INDEV_TYPE_KEYPAD) { else if (i->driver.type == LV_INDEV_TYPE_KEYPAD) {
if(i->group != NULL && data.state == LV_INDEV_EVENT_PR) { if(i->group != NULL && data.state == LV_INDEV_EVENT_PR && data.key != 0) {
if(data.key == LV_GROUP_KEY_NEXT) { lv_group_focus_next(i->group); if(data.key == LV_GROUP_KEY_NEXT) {
lv_group_focus_next(i->group);
} }
else if(data.key == LV_GROUP_KEY_PREV) { else if(data.key == LV_GROUP_KEY_PREV) {
lv_group_focus_prev(i->group); lv_group_focus_prev(i->group);
......
...@@ -89,6 +89,7 @@ lv_obj_t * lv_cb_create(lv_obj_t * par, lv_obj_t * copy) ...@@ -89,6 +89,7 @@ lv_obj_t * lv_cb_create(lv_obj_t * par, lv_obj_t * copy)
lv_cb_set_style(new_cb, LV_CB_STYLE_BOX_INA, th->cb.box.ina); lv_cb_set_style(new_cb, LV_CB_STYLE_BOX_INA, th->cb.box.ina);
} else { } else {
lv_cb_set_style(new_cb,LV_CB_STYLE_BG, &lv_style_transp); lv_cb_set_style(new_cb,LV_CB_STYLE_BG, &lv_style_transp);
lv_cb_set_style(new_cb, LV_CB_STYLE_BOX_REL,&lv_style_pretty);
} }
} else { } else {
lv_cb_ext_t * copy_ext = lv_obj_get_ext_attr(copy); lv_cb_ext_t * copy_ext = lv_obj_get_ext_attr(copy);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment