mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
remove menu item underline for touch device
This commit is contained in:
@@ -393,10 +393,13 @@ function Menu:updateItems(select_number)
|
||||
end -- if i <= self.items
|
||||
end -- for c=1, self.perpage
|
||||
if self.item_group[1] then
|
||||
-- reset focus manager accordingly
|
||||
self.selected = { x = 1, y = select_number }
|
||||
-- set focus to requested menu item
|
||||
self.item_group[select_number]:onFocus()
|
||||
if not Device:isTouchDevice() then
|
||||
-- only draw underline for nontouch device
|
||||
-- reset focus manager accordingly
|
||||
self.selected = { x = 1, y = select_number }
|
||||
-- set focus to requested menu item
|
||||
self.item_group[select_number]:onFocus()
|
||||
end
|
||||
-- update page information
|
||||
self.page_info.text = "page "..self.page.."/"..self.page_num
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user