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

@@ -289,11 +289,6 @@ function TextViewer:onShow()
return true
end
function TextViewer:onAnyKeyPressed()
UIManager:close(self)
return true
end
function TextViewer:onTapClose(arg, ges_ev)
if ges_ev.pos:notIntersectWith(self.frame.dimen) then
self:onClose()