Merge pull request #2574 from Snuffleupagus/pagechange-with-up/down-keys-pagefit
Change page with up/down arrow keys when zoom is set to 'page-fit'
This commit is contained in:
commit
ab8caaa408
@ -3205,7 +3205,7 @@ window.addEventListener('keydown', function keydown(evt) {
|
|||||||
case 38: // up arrow
|
case 38: // up arrow
|
||||||
case 33: // pg up
|
case 33: // pg up
|
||||||
case 8: // backspace
|
case 8: // backspace
|
||||||
if (!PDFView.isFullscreen) {
|
if (!PDFView.isFullscreen && PDFView.currentScaleValue !== 'page-fit') {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// in fullscreen mode falls throw here
|
// in fullscreen mode falls throw here
|
||||||
@ -3222,7 +3222,7 @@ window.addEventListener('keydown', function keydown(evt) {
|
|||||||
case 40: // down arrow
|
case 40: // down arrow
|
||||||
case 34: // pg down
|
case 34: // pg down
|
||||||
case 32: // spacebar
|
case 32: // spacebar
|
||||||
if (!PDFView.isFullscreen) {
|
if (!PDFView.isFullscreen && PDFView.currentScaleValue !== 'page-fit') {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// in fullscreen mode falls throw here
|
// in fullscreen mode falls throw here
|
||||||
|
Loading…
Reference in New Issue
Block a user