Fullscreen refactor (#9237)

Commonize fullscreen code across different devices.

Add fullscreen toggle on SDL desktop targets. 
Expose the toggle to the dispatcher and map it to F11.

Hide touchmenu when resizing.
This commit is contained in:
Martín Fernández
2022-06-24 23:19:38 +02:00
committed by GitHub
parent 6fdb83017b
commit b7a27a3db3
12 changed files with 150 additions and 88 deletions

View File

@@ -407,6 +407,10 @@ function ReaderMenu:onCloseReaderMenu()
return true
end
function ReaderMenu:onSetDimensions(dimen)
self:onCloseReaderMenu()
end
function ReaderMenu:onCloseDocument()
if Device:supportsScreensaver() then
-- Remove the item we added (which cleans up references to document