fix(focus): hasFocus() uses proper state
This commit is contained in:
committed by
Raphael Coeffic
parent
469375786b
commit
862073d4c2
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user