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
reviewable/pr10914/r1
NiLuJe 9 months ago committed by GitHub
parent f3d959a324
commit 2b13cd7dcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

Loading…
Cancel
Save