fix(focus): hasFocus() uses proper state

This commit is contained in:
Raphael Coeffic
2022-06-11 15:13:11 +02:00
committed by Raphael Coeffic
parent 469375786b
commit 862073d4c2
+1 -1
View File
@@ -361,7 +361,7 @@ void Window::deleteChildren()
bool Window::hasFocus() const
{
return lvobj && lv_obj_has_state(lvobj, LV_STATE_FOCUS_KEY);
return lvobj && lv_obj_has_state(lvobj, LV_STATE_FOCUSED);
}
bool Window::hasOpaqueRect(const rect_t & testRect) const