From 0fb9113078bb727134a010178a1caedd79e47f8e Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Tue, 26 May 2020 17:43:44 +0200 Subject: [PATCH] [feat] Add Device:hasFewKeys() (#6193) This will allow to behave subtly different in certain instances. Cf. . --- frontend/device/generic/device.lua | 1 + frontend/device/pocketbook/device.lua | 3 +++ 2 files changed, 4 insertions(+) diff --git a/frontend/device/generic/device.lua b/frontend/device/generic/device.lua index 5c1c6911f..524f818df 100644 --- a/frontend/device/generic/device.lua +++ b/frontend/device/generic/device.lua @@ -29,6 +29,7 @@ local Device = { hasKeyboard = no, hasKeys = no, hasDPad = no, + hasFewKeys = no, hasWifiToggle = yes, hasWifiManager = no, isHapticFeedbackEnabled = no, diff --git a/frontend/device/pocketbook/device.lua b/frontend/device/pocketbook/device.lua index 59a27b969..55de2aec5 100644 --- a/frontend/device/pocketbook/device.lua +++ b/frontend/device/pocketbook/device.lua @@ -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