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:
@@ -280,18 +280,12 @@ function InfoMessage:dismiss()
|
||||
UIManager:close(self)
|
||||
end
|
||||
|
||||
function InfoMessage:onAnyKeyPressed()
|
||||
self:dismiss()
|
||||
if self.readonly ~= true then
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
function InfoMessage:onTapClose()
|
||||
self:dismiss()
|
||||
if self.readonly ~= true then
|
||||
return true
|
||||
end
|
||||
end
|
||||
InfoMessage.onAnyKeyPressed = InfoMessage.onTapClose
|
||||
|
||||
return InfoMessage
|
||||
|
||||
Reference in New Issue
Block a user