FocusManager:focusTopLeftWidget(): only if hasDPad (#8737)

Focusing (highlighting/inverting) widgets should not
happen on touch devices withoud DPad.
reviewable/pr8747/r1
Philip Chan 2 years ago committed by GitHub
parent f2557a7aa6
commit 978aa2006a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -219,7 +219,10 @@ end
--- Container call this method after init to let first widget render in focus style
function FocusManager:focusTopLeftWidget()
self:onFocusMove({0, 0})
if Device:hasDPad() then
-- trigger selected widget in focused style
self:onFocusMove({0, 0})
end
end
return FocusManager

Loading…
Cancel
Save