Skip to content
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

Change the GoToPage Named Action to select the contents of the pageNumber input, rather than just focusing the element #7583

Merged
merged 1 commit into from
Sep 1, 2016

Conversation

Snuffleupagus
Copy link
Collaborator

When clicking on the pageNumber input, or when using the keyboard shortcut Ctrl+Alt+G, the element isn't just focused but its contents is actually selected so that the user doesn't need to clear the input before entering a new pageNumber.
However, the GoToPage named action is only using focus, so let's change this to be consistent.

The following document can be used for testing: http://www2.informatik.uni-freiburg.de/~frank/ENG/beamer/example/Beamer-class-example1.pdf#zoom=page-fit

gotopage

@Snuffleupagus Snuffleupagus changed the title Change the GoToPage Named Action to select the contents of the pageNumber input, rather than just focusing it element Change the GoToPage Named Action to select the contents of the pageNumber input, rather than just focusing the element Sep 1, 2016
…eNumber` input, rather than just focusing the element

When clicking on the `pageNumber` input, or when using the keyboard shortcut <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>G</kbd>, the element isn't just focused but its contents is actually *selected* so that the user doesn't need to clear the input before entering a new `pageNumber`.
However, the `GoToPage` named action is only using `focus`, so let's change this to be consistent.

The following document can be used for testing: http://www2.informatik.uni-freiburg.de/~frank/ENG/beamer/example/Beamer-class-example1.pdf#zoom=page-fit

[screeenshot]
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Sep 1, 2016

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/5b83c4314969278/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Sep 1, 2016

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/5b83c4314969278/output.txt

Total script time: 1.07 mins

Published

@timvandermeij timvandermeij merged commit 61a576c into mozilla:master Sep 1, 2016
@timvandermeij
Copy link
Contributor

Good UX improvement, thank you!

@Snuffleupagus Snuffleupagus deleted the Named-Action-GoToPage-select branch September 1, 2016 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants