mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
Disabled rotation map for Android devices where "hw media keys follow gravity" (#12557)
This commit is contained in:
@@ -246,6 +246,11 @@ function Device:init()
|
||||
end,
|
||||
}
|
||||
|
||||
-- disable translation for specific models, where media keys follow gravity, see https://github.com/koreader/koreader/issues/12423
|
||||
if android.prop.model == "moaanmix7" or android.prop.model == "xiaomi_reader" then
|
||||
self.input:disableRotationMap()
|
||||
end
|
||||
|
||||
-- check if we have a keyboard
|
||||
if android.lib.AConfiguration_getKeyboard(android.app.config)
|
||||
== C.ACONFIGURATION_KEYBOARD_QWERTY
|
||||
|
||||
Reference in New Issue
Block a user