From 6102b6197f75af0f02c87833ca05c37aa466e459 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Mon, 21 Oct 2013 23:39:17 +0200 Subject: [PATCH] Fix scroll keys in Firefox --- web/viewer.html | 4 ---- web/viewer.js | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/web/viewer.html b/web/viewer.html index 6bac6b583..4dc8e69c5 100644 --- a/web/viewer.html +++ b/web/viewer.html @@ -265,11 +265,7 @@ limitations under the License. data-l10n-id="page_rotate_ccw"> - - -
-
diff --git a/web/viewer.js b/web/viewer.js index 5e748aedb..3f8056cef 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -2015,6 +2015,11 @@ window.addEventListener('keydown', function keydown(evt) { return; // ignoring if the 'toolbar' element is focused curElement = curElement.parentNode; } +//#if (FIREFOX || MOZCENTRAL) +//// Workaround for issue in Firefox, that prevents scroll keys from working +//// when elements with 'tabindex' are focused. +//PDFView.container.blur(); +//#endif if (cmd === 0) { // no control key pressed at all. switch (evt.keyCode) {