-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[sdl] Add support arrow key for next/prev page #5149
Conversation
Co-Authored-By: Frans de Jonge <fransdejonge@gmail.com>
@@ -43,13 +43,22 @@ function ReaderPaging:init() | |||
self.key_events = {} | |||
if Device:hasKeys() then | |||
self.key_events.GotoNextPage = { | |||
{Input.group.PgFwd}, doc = "go to next page", | |||
{ {"RPgFwd", "LPgFwd", "Right" } }, doc = "go to next page", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was there an issue with simply adding Left/Right to the PgBack/PgFwd input groups?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
input.group.PgFwd/PgBack is also used in another places eg. scrolltextwidget, keyvaluepage etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, that's what I thought, thanks for the confirmation ;).
Close: koreader#4997 This PR add support arrow key and mouse scroll wheel for next/previous page. - Document in page mode: PageDown, Arrow down, Arrow right - go to next page PageUp, Arrow up, arrow left - go to prev page Mouse scroll wheel down - go to next page Mouse scroll wheel up - go to prev page - Document in scroll mode: PageDown, Arrow right - go to next page PageUp, Arrow, arrow left - go to prev page Arrow down - scroll document down Arrow up - scroll document up Mouse scroll wheel down - scroll document down Mouse scroll wheel up - scroll document up
Close: #4997
This PR add support arrow key and mouse scroll wheel for next/previous page.
PageDown, Arrow down, Arrow right - go to next page
PageUp, Arrow up, arrow left - go to prev page
Mouse scroll wheel down - go to next page
Mouse scroll wheel up - go to prev page
PageDown, Arrow right - go to next page
PageUp, Arrow, arrow left - go to prev page
Arrow down - scroll document down
Arrow up - scroll document up
Mouse scroll wheel down - scroll document down
Mouse scroll wheel up - scroll document up