mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Kobo: Run Generic:init dead last, like every other platform
This is semantically more correct, and should prevent platform-specific weirdness if an ordering concern ever comes up (e.g., like it did for the viewport stuff).
This commit is contained in:
@@ -816,10 +816,6 @@ function Kobo:init()
|
||||
-- And then handle the extra shenanigans if necessary.
|
||||
self:initEventAdjustHooks()
|
||||
|
||||
-- Let generic properly setup the standard stuff
|
||||
-- (*after* we've set our input hooks, so that the viewport translation runs last).
|
||||
Generic.init(self)
|
||||
|
||||
-- Various HW Buttons, Switches & Synthetic NTX events
|
||||
self.ntx_fd = self.input.open(self.ntx_dev)
|
||||
-- Dedicated Power Button input device (if any)
|
||||
@@ -898,6 +894,10 @@ function Kobo:init()
|
||||
if G_reader_settings:isTrue("input_no_key_repeats") then
|
||||
self:toggleKeyRepeat(false)
|
||||
end
|
||||
|
||||
-- Finally, Let Generic properly setup the standard stuff.
|
||||
-- (Of particular import, this needs to come *after* we've set our input hooks, so that the viewport translation runs last).
|
||||
Generic.init(self)
|
||||
end
|
||||
|
||||
function Kobo:exit()
|
||||
|
||||
Reference in New Issue
Block a user