Skip to content

Commit

Permalink
lv_btnm: fix FOCUS signal
Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor committed Dec 30, 2019
1 parent f8f308a commit 479012e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lv_objx/lv_btnm.c
Original file line number Diff line number Diff line change
Expand Up @@ -863,9 +863,10 @@ static lv_res_t lv_btnm_signal(lv_obj_t * btnm, lv_signal_t sign, void * param)
lv_indev_type_t indev_type = lv_indev_get_type(indev);

/*If not focused by an input device assume the last input device*/
if(indev_type == LV_INDEV_TYPE_NONE) {
indev_type = lv_indev_get_type(lv_indev_get_next(NULL));
}
if(indev == NULL) {
indev = lv_indev_get_next(NULL);
indev_type = lv_indev_get_type(indev);
}

if(indev_type == LV_INDEV_TYPE_POINTER) {
/*Select the clicked button*/
Expand Down

0 comments on commit 479012e

Please sign in to comment.