mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Don't use Home to exit Help page.
It is a bad idea to use too many keys for the same function and also do this non-uniformly (i.e. not in all contexts). The info at the bottom of Help screen says "Back to close this page", so only KEY_BACK (but not KEY_HOME) should serve this purpose. And if the user pressed Home twice then the whole application would exit, so using Home here is a bad idea.
This commit is contained in:
@@ -116,7 +116,7 @@ function HelpPage:show(ypos, height, commands, title)
|
||||
self.page = self.page - 1
|
||||
is_pagedirty = true
|
||||
end
|
||||
elseif ev.code == KEY_BACK or ev.code == KEY_HOME then
|
||||
elseif ev.code == KEY_BACK then
|
||||
return nil
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user