summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/eve/widget/selectw.c
diff options
context:
space:
mode:
Diffstat (limited to 'fw/fe310/eos/eve/widget/selectw.c')
-rw-r--r--fw/fe310/eos/eve/widget/selectw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fw/fe310/eos/eve/widget/selectw.c b/fw/fe310/eos/eve/widget/selectw.c
index 5acf998..f5bb6e0 100644
--- a/fw/fe310/eos/eve/widget/selectw.c
+++ b/fw/fe310/eos/eve/widget/selectw.c
@@ -180,7 +180,6 @@ int eve_selectw_touch(EVEWidget *_widget, EVETouch *touch, uint16_t evt) {
}
}
- eve_widget_set_focus(_widget, NULL);
return 1;
}
@@ -206,7 +205,8 @@ utf8_t *eve_selectw_option(EVESelectWidget *widget, int idx) {
}
utf8_t *eve_selectw_option_selected(EVESelectWidget *widget) {
- return eve_selectw_option(widget, widget->select);
+ if (widget->select != SELECTW_NOSELECT) return eve_selectw_option(widget, widget->select);
+ return NULL;
}
int eve_selectw_add_option(EVESelectWidget *widget, utf8_t *option) {