mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Add shortcut for goto page
This commit is contained in:
parent
bd6871a1cd
commit
807e4fef34
1 changed files with 5 additions and 0 deletions
|
@ -1990,6 +1990,11 @@ window.addEventListener('keydown', function keydown(evt) {
|
|||
SecondaryToolbar.presentationModeClick();
|
||||
handled = true;
|
||||
break;
|
||||
case 71: // g
|
||||
// focuses input#pageNumber field
|
||||
document.getElementById('pageNumber').select();
|
||||
handled = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue