mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
TouchMenu: tweak menu search (#9926)
- Cleanup search and animation codes, fix inconsistencies between animation/no-animation opening, and refreshes glitches on eInk. - Show menu item on tap, with buttons to either open directly, or to walk there (removed earlier "Animation" checkbox, so the choice can be decided later). - Move event handlers into ReaderMenu/FileManagerMenu. - Avoid duplicated and confusing results from gestures and font-family submenus.
This commit is contained in:
@@ -538,6 +538,11 @@ function ReaderMenu:onSaveSettings()
|
||||
self.ui.doc_settings:saveSetting("readermenu_tab_index", self.last_tab_index)
|
||||
end
|
||||
|
||||
function ReaderMenu:onMenuSearch()
|
||||
self:onShowMenu()
|
||||
self.menu_container[1]:onShowMenuSearch()
|
||||
end
|
||||
|
||||
function ReaderMenu:registerToMainMenu(widget)
|
||||
table.insert(self.registered_widgets, widget)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user