Add keyboard shortcuts to navigate pages with 'n' and 'p' keys (Next/Previous)

This commit is contained in:
Chris Peterson 2011-12-18 20:42:18 -08:00
parent 4008ec69b8
commit 396daddefe

View File

@ -914,11 +914,13 @@ window.addEventListener('keydown', function keydown(evt) {
break;
case 37: // left arrow
case 75: // 'k'
case 80: // 'p'
PDFView.page--;
handle = true;
break;
case 39: // right arrow
case 74: // 'j'
case 78: // 'n'
PDFView.page++;
handle = true;
break;