mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #3399 from Snuffleupagus/change-page-shift+space
Enable changing page using Shift+Spacebar in presentation mode
This commit is contained in:
commit
b79cc690fc
1 changed files with 9 additions and 0 deletions
|
@ -3117,6 +3117,15 @@ window.addEventListener('keydown', function keydown(evt) {
|
|||
|
||||
if (cmd === 4) { // shift-key
|
||||
switch (evt.keyCode) {
|
||||
case 32: // spacebar
|
||||
if (!PDFView.isPresentationMode &&
|
||||
PDFView.currentScaleValue !== 'page-fit') {
|
||||
break;
|
||||
}
|
||||
PDFView.page--;
|
||||
handled = true;
|
||||
break;
|
||||
|
||||
case 82: // 'r'
|
||||
PDFView.rotatePages(-90);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue