mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
remove menu item shortcut for k4
This commit is contained in:
@@ -8,7 +8,6 @@ require "ui/infomessage"
|
||||
require "document/document"
|
||||
require "alt_getopt"
|
||||
|
||||
|
||||
function showReader(file, pass)
|
||||
local document = DocumentRegistry:openDocument(file)
|
||||
if not document then
|
||||
@@ -105,6 +104,12 @@ if optarg["G"] ~= nil then
|
||||
globalgamma = optarg["G"]
|
||||
end
|
||||
|
||||
|
||||
if Device.isKindle4() then
|
||||
-- remove menu item shortcut for K4
|
||||
Menu.is_enable_shortcut = false
|
||||
end
|
||||
|
||||
-- set up reader's setting: font
|
||||
G_reader_settings = DocSettings:open(".reader")
|
||||
fontmap = G_reader_settings:readSetting("fontmap")
|
||||
|
||||
Reference in New Issue
Block a user