[feat] Add Device:hasFewKeys() (#6193)

This will allow to behave subtly different in certain instances.
Cf. <https://github.com/koreader/koreader/issues/4029>.
This commit is contained in:
Frans de Jonge
2020-05-26 17:43:44 +02:00
committed by GitHub
parent 528e993eb3
commit 0fb9113078
2 changed files with 4 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ local Device = {
hasKeyboard = no,
hasKeys = no,
hasDPad = no,
hasFewKeys = no,
hasWifiToggle = yes,
hasWifiManager = no,
isHapticFeedbackEnabled = no,

View File

@@ -217,6 +217,7 @@ local PocketBook515 = PocketBook:new{
isTouchDevice = no,
hasWifiToggle = no,
hasDPad = yes,
hasFewKeys = yes,
}
-- PocketBoot 613 Basic
@@ -226,6 +227,7 @@ local PocketBook613 = PocketBook:new{
isTouchDevice = no,
hasWifiToggle = no,
hasDPad = yes,
hasFewKeys = yes,
}
-- PocketBook Basic Lux 2
@@ -235,6 +237,7 @@ local PocketBook616 = PocketBook:new{
isTouchDevice = no,
hasWifiToggle = no,
hasDPad = yes,
hasFewKeys = yes,
}
-- PocketBook Lux 4