Fixes regression that cause scrolling using spacebar to break in Firefox

This commit is contained in:
Jonas 2013-07-19 22:09:37 +02:00
parent c6e698e21f
commit 8708f8beb5
2 changed files with 7 additions and 1 deletions

View File

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

View File

@ -950,7 +950,9 @@ var PDFView = {
// unless the viewer is embedded in another page.
if (window.parent === window) {
PDFView.container.focus();
PDFView.container.blur();
//#if (FIREFOX || MOZCENTRAL)
// PDFView.container.blur();
//#endif
}
});