Skip to content

Make the keyboard shortcuts Ctrl + Up/Down behave as Home/End (issue 7852) #7858

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

Merged
merged 1 commit into from
Nov 30, 2016
Merged

Make the keyboard shortcuts Ctrl + Up/Down behave as Home/End (issue 7852) #7858

merged 1 commit into from
Nov 30, 2016

Conversation

Snuffleupagus
Copy link
Collaborator

It seems that for normal web pages, at least in Firefox, the keyboard shortcuts Ctrl + Up/Down are functionally equivalent to Home/End. This is obviously an edge-case, but can be easily implemented by using the same logic as we do for Home/End.

Fixes #7852.

Please note: I'm finding it slightly difficult to interpret issue #7852, and bug 1285719, since among other things: the title includes the word "reverse" with no other mention of it, and the STR makes reference to print preview which doesn't seem applicable to the PDF viewer.
However, compared to regular web pages in Firefox, I think the behavior of this patch makes sense here.

…sue 7852)

It seems that for normal web pages, at least in Firefox, the keyboard shortcuts <kbd>Ctrl</kbd> + <kbd>Up</kbd>/<kbd>Down</kbd> are functionally equivalent to <kbd>Home</kbd>/<kbd>End</kbd>. This is obviously an edge-case, but can be easily implemented by using the same logic as we do for <kbd>Home</kbd>/<kbd>End</kbd>.

Fixes 7852.

*Please note:* I'm finding it slightly difficult to interpret issue 7852, and bug 1285719, since among other things: the title includes the word "reverse" with no other mention of it, and the STR makes reference to print preview which doesn't seem applicable to the PDF viewer.
However, compared to regular web pages in Firefox, I think the behavior of this patch makes sense here.
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://107.21.233.14:8877/d614507fe62f671/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/d614507fe62f671/output.txt

Total script time: 2.26 mins

Published

@timvandermeij timvandermeij merged commit fb4c4ff into mozilla:master Nov 30, 2016
@timvandermeij
Copy link
Contributor

Looks good, thank you! For what it's worth, this is also how I interpreted the original issue.

@Snuffleupagus Snuffleupagus deleted the issue-7852 branch November 30, 2016 21:29
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
Make the keyboard shortcuts `Ctrl + Up/Down` behave as `Home/End` (issue 7852)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants