Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Don't catch Ctrl+PgDown/Up #632

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions share/pdf2htmlEX.js.in
Original file line number Diff line number Diff line change
Expand Up @@ -660,18 +660,20 @@ Viewer.prototype = {
case 33: // Page UP:
if (with_alt) { // alt-pageup -> scroll one page up
self.scroll_to(self.cur_page_idx - 1);
} else { // pageup -> scroll one screen up
handled = true;
} else if (!with_ctrl) { // pageup -> scroll one screen up
self.container.scrollTop -= self.container.clientHeight;
handled = true;
}
handled = true;
break;
case 34: // Page DOWN
if (with_alt) { // alt-pagedown -> scroll one page down
self.scroll_to(self.cur_page_idx + 1);
} else { // pagedown -> scroll one screen down
handled = true;
} else if (!with_ctrl) { // pagedown -> scroll one screen down
self.container.scrollTop += self.container.clientHeight;
handled = true;
}
handled = true;
break;
case 35: // End
self.container.scrollTop = self.container.scrollHeight;
Expand Down