Files
koreader/frontend/ui/elements/reader_menu_order.lua
Huang Xin 8938786472 [fix] stop propagation of tap events when triggering reader menu (#2934)
* [fix] stop propagation of tap events
when triggering reader menu
And also get rid of unnecessary screen refreshes on Kindle Voyage.
The "progress" window for dict lookup is also eliminated as most of the time dict lookup is an instant process, and the "progress" window is preserved for wikipedia lookup as it may take longer time to show the result window.

* [up] add an option to disable dictionary fuzzy search

* [fix] tidy up require

* [fix] fix read settings
2017-06-19 00:08:57 +08:00

101 lines
2.5 KiB
Lua

local order = {
["KOMenu:menu_buttons"] = {
"navi",
"typeset",
"setting",
"tools",
"search",
"filemanager",
"main",
},
navi = {
"table_of_contents",
"bookmarks",
"----------------------------",
"go_to",
"skim_to",
"----------------------------",
"follow_links",
},
typeset = {
"page_overlap",
"switch_zoom_mode",
"set_render_style",
"----------------------------",
"highlight_options",
"----------------------------",
"floating_punctuation",
"change_font",
"hyphenation",
"----------------------------",
"speed_reading_module_perception_expander",
},
setting = {
"read_from_right_to_left",
"disable_fuzzy_search",
-- common settings
-- those that don't exist will simply be skipped during menu gen
"frontlight", -- if Device:hasFrontlight()
"night_mode",
"----------------------------",
"network",
"screen",
"screensaver",
"save_document",
"----------------------------",
"language",
"----------------------------",
"djvu_render_mode",
"status_bar",
},
tools = {
"read_timer",
"calibre_wireless_connection",
"evernote",
"keep_alive",
"frontlight_gesture_controller",
"statistics",
"battery_statistics",
"storage_stat",
"synchronize_time",
"progress_sync",
"zsync",
"news_downloader",
"terminal",
},
search = {
"dictionary_lookup",
"wikipedia_lookup",
"----------------------------",
"goodreads",
"----------------------------",
"fulltext_search",
},
filemanager = {},
main = {
"history",
"book_status",
"----------------------------",
"ota_update", --[[ if Device:isKindle() or Device:isKobo() or
Device:isPocketBook() or Device:isAndroid() ]]--
"version",
"help",
"system_statistics",
"----------------------------",
"restart_koreader",
"poweroff", -- if Device:isKobo()
"reboot", -- if Device:isKobo()
"----------------------------",
"exit",
},
help = {
"quickstart_guide",
"----------------------------",
"report_bug",
"----------------------------",
"about",
},
}
return order