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

Handtool: Remove focus from previous node on click #5259

Merged
merged 1 commit into from
Sep 3, 2014

Conversation

Rob--W
Copy link
Member

@Rob--W Rob--W commented Sep 3, 2014

"This commit fixes the issue that a focused element cannot lose
focus when the draggable element is clicked."
Rob--W/grab-to-pan.js@dae91a92ee47bf2

Steps to reproduce/verify:

  1. Enable the hand tool (e.g. by using the H shortcut)
  2. Click on the Page number input.
  3. Click or drag the PDF canvas.
  4. Observe that the page number input is still focused. Consequently, the hand tool cannot be disabled using the H shortcut.

After applying this patch, the input field will lose focus at step 3, and at step 4 the hand tool can successfully be toggled using the H shortcut.

"This commit fixes the issue that a focused element cannot lose
focus when the draggable element is clicked."
Rob--W/grab-to-pan.js@11c368f97cebe19

Steps to reproduce/verify:
1. Enable the hand tool (e.g. by using the H shortcut)
2. Click on the Page number input.
3. Click or drag the PDF canvas.
4. Observe that the page number input is still focused.
   Consequently, the hand tool cannot be disabled using the H shortcut.
@Snuffleupagus
Copy link
Collaborator

/botio-windows preview

@pdfjsbot
Copy link

pdfjsbot commented Sep 3, 2014

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/19ab3f087f7a211/output.txt

timvandermeij added a commit that referenced this pull request Sep 3, 2014
Handtool: Remove focus from previous node on click
@timvandermeij timvandermeij merged commit 2158fcc into mozilla:master Sep 3, 2014
@timvandermeij
Copy link
Contributor

Nice, thanks!

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.

None yet

4 participants