mozilla/pdf.js — pull request #5259 by Rob--W (2014-09-03 14:26:42+00:00)
Title: Handtool: Remove focus from previous node on click

"This commit fixes the issue that a focused element cannot lose
focus when the draggable element is clicked."
https://github.com/Rob--W/grab-to-pan.js/commit/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.