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:
1 parent
f3d959a324
commit
2b13cd7dcb
1 file changed
+4
-2
@@ -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