mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add Device:hasKeyboard to help initialize UI components
So that kindle4 won't have all the gesture event registered.
This commit is contained in:
@@ -62,9 +62,6 @@ end
|
||||
|
||||
-- option parsing:
|
||||
longopts = {
|
||||
password = "p",
|
||||
goto = "g",
|
||||
gamma = "G",
|
||||
debug = "d",
|
||||
help = "h",
|
||||
}
|
||||
@@ -97,7 +94,7 @@ else
|
||||
DEBUG = function() end
|
||||
end
|
||||
|
||||
if Device.isKindle4() or Device:isTouchDevice() then
|
||||
if Device:hasNoKeyboard() then
|
||||
-- remove menu item shortcut for K4
|
||||
Menu.is_enable_shortcut = false
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user