Cleanup: Remove unused onAnyKeyPressed handlers

And simplify the few we do catch by using aliases instead of duplicated
functions;).
This commit is contained in:
NiLuJe
2022-10-23 22:36:09 +02:00
parent 78381c3afa
commit d2ac2ca6e7
13 changed files with 14 additions and 75 deletions

View File

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