fix: numberedit_cb handles only keys

This commit is contained in:
Raphael Coeffic
2022-06-11 15:13:11 +02:00
committed by Raphael Coeffic
parent 5052b762c9
commit bf136376b2
+1 -1
View File
@@ -90,7 +90,7 @@ NumberEdit::NumberEdit(Window* parent, const rect_t& rect, int vmin, int vmax,
auto value = _getValue();
this->setValue(value);
lv_obj_add_event_cb(lvobj, numberedit_cb, LV_EVENT_ALL, this);
lv_obj_add_event_cb(lvobj, numberedit_cb, LV_EVENT_KEY, this);
}
void NumberEdit::onEvent(event_t event)