mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
android: touchscreen toggle option (#5564)
This commit is contained in:
committed by
poire-z
parent
371e3336a5
commit
f1f75c5cb0
@@ -324,7 +324,8 @@ function Input:handleKeyBoardEv(ev)
|
||||
end
|
||||
|
||||
-- The hardware camera button is used in Android to toggle the touchscreen
|
||||
if keycode == "Camera" and ev.value == EVENT_VALUE_KEY_RELEASE then
|
||||
if keycode == "Camera" and ev.value == EVENT_VALUE_KEY_RELEASE
|
||||
and G_reader_settings:isTrue("camera_key_toggles_touchscreen") then
|
||||
local isAndroid, android = pcall(require, "android")
|
||||
if isAndroid then
|
||||
-- toggle touchscreen behaviour
|
||||
|
||||
Reference in New Issue
Block a user