From 932e21cc0fcd8a6c1ce03ac81af28c50822ea4ac Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Mon, 11 Nov 2013 20:28:01 +0800 Subject: [PATCH] home/end without ctrl --- share/pdf2htmlEX.js.in | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/share/pdf2htmlEX.js.in b/share/pdf2htmlEX.js.in index 8b1475f..d201ce1 100644 --- a/share/pdf2htmlEX.js.in +++ b/share/pdf2htmlEX.js.in @@ -571,16 +571,12 @@ Viewer.prototype = { handled = true; break; case 35: // End - if (with_ctrl) { - _.container.scrollTop = _.container.scrollHeight; - handled = true; - } + _.container.scrollTop = _.container.scrollHeight; + handled = true; break; case 36: // Home - if (e.with_ctrl) { - _.container.scrollTop = 0; - handled = true; - } + _.container.scrollTop = 0; + handled = true; break; } if(handled) {