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:
Yury Delendik 2013-01-16 06:45:52 -08:00
commit ab8caaa408

View File

@ -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