Misc: Some more FocusManager fallout (#12667)

Don't show initial focus in KVP & CalendarView

Fix https://github.com/koreader/koreader/pull/12583#issuecomment-2427403108
This commit is contained in:
NiLuJe
2024-10-22 10:38:02 +02:00
committed by GitHub
parent fdd342de40
commit 2497d8f352
2 changed files with 2 additions and 2 deletions

View File

@@ -1440,7 +1440,7 @@ function CalendarView:_populateItems()
for _, week in ipairs(self.weeks) do
week:update()
end
self:moveFocusTo(1, 1, FocusManager.NOT_UNFOCUS)
self:moveFocusTo(1, 1, bit.bor(FocusManager.FOCUS_ONLY_ON_NT, FocusManager.NOT_UNFOCUS))
UIManager:setDirty(self, function()
return "ui", self.dimen
end)