mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Device: Make sure input_no_key_repeat survives a suspend/resume cycle (#10904)
I somehow assumed the repeat state snapshot used for restore was taken *after* disabling repeat, but obviously not ;o). Fix #10902
This commit is contained in:
@@ -1097,8 +1097,10 @@ end
|
||||
-- The common operations that should be performed after resuming the device.
|
||||
function Device:_afterResume(inhibit)
|
||||
if inhibit ~= false then
|
||||
-- Restore key repeat
|
||||
self:restoreKeyRepeat()
|
||||
-- Restore key repeat if it's not disabled
|
||||
if G_reader_settings:nilOrFalse("input_no_key_repeat") then
|
||||
self:restoreKeyRepeat()
|
||||
end
|
||||
|
||||
-- Restore full input handling
|
||||
self.input:inhibitInput(false)
|
||||
|
||||
Reference in New Issue
Block a user