Add keyboard shortcuts to navigate pages with 'n' and 'p' keys (Next/Previous)
This commit is contained in:
parent
4008ec69b8
commit
396daddefe
@ -914,11 +914,13 @@ window.addEventListener('keydown', function keydown(evt) {
|
|||||||
break;
|
break;
|
||||||
case 37: // left arrow
|
case 37: // left arrow
|
||||||
case 75: // 'k'
|
case 75: // 'k'
|
||||||
|
case 80: // 'p'
|
||||||
PDFView.page--;
|
PDFView.page--;
|
||||||
handle = true;
|
handle = true;
|
||||||
break;
|
break;
|
||||||
case 39: // right arrow
|
case 39: // right arrow
|
||||||
case 74: // 'j'
|
case 74: // 'j'
|
||||||
|
case 78: // 'n'
|
||||||
PDFView.page++;
|
PDFView.page++;
|
||||||
handle = true;
|
handle = true;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user