mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
FocusManager:focusTopLeftWidget(): only if hasDPad (#8737)
Focusing (highlighting/inverting) widgets should not happen on touch devices withoud DPad.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user