mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Make the toolbar buttons usable with keyboard when Page Fit is used
This commit is contained in:
parent
c4c24c6d18
commit
3263fd0307
1 changed files with 2 additions and 0 deletions
|
@ -3100,6 +3100,8 @@ function webViewerKeyDown(evt) {
|
|||
curElementTagName === "INPUT" ||
|
||||
curElementTagName === "TEXTAREA" ||
|
||||
curElementTagName === "SELECT" ||
|
||||
(curElementTagName === "BUTTON" &&
|
||||
(evt.keyCode === /* Enter = */ 13 || evt.keyCode === /* Space = */ 32)) ||
|
||||
curElement?.isContentEditable
|
||||
) {
|
||||
// Make sure that the secondary toolbar is closed when Escape is pressed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue