Fix scroll keys in Firefox

This commit is contained in:
Jonas Jenwald 2013-10-21 23:39:17 +02:00
parent 5beefde2c7
commit 6102b6197f
2 changed files with 5 additions and 4 deletions

View File

@ -265,11 +265,7 @@ limitations under the License.
data-l10n-id="page_rotate_ccw"></menuitem>
</menu>
<!--#if (FIREFOX || MOZCENTRAL) -->
<!-- <div id="viewerContainer"> -->
<!--#else -->
<div id="viewerContainer" tabindex="0">
<!--#endif -->
<div id="viewer"></div>
</div>

View File

@ -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) {