mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Cleanup: Remove unused onAnyKeyPressed handlers
And simplify the few we do catch by using aliases instead of duplicated functions;).
This commit is contained in:
@@ -816,11 +816,6 @@ function ImageViewer:onClose()
|
||||
return true
|
||||
end
|
||||
|
||||
function ImageViewer:onAnyKeyPressed()
|
||||
self:onClose()
|
||||
return true
|
||||
end
|
||||
|
||||
function ImageViewer:onCloseWidget()
|
||||
-- Our ImageWidget (self._image_wg) is always a proper child widget, so it'll receive this event,
|
||||
-- and attempt to free its resources accordingly.
|
||||
|
||||
Reference in New Issue
Block a user