mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Fix spacebar scrolling in Firefox (4224 follow-up)
This commit is contained in:
parent
0af0c6c99d
commit
4ee1fb7956
1 changed files with 1 additions and 1 deletions
|
@ -2254,7 +2254,7 @@ window.addEventListener('keydown', function keydown(evt) {
|
||||||
}
|
}
|
||||||
// 32=Spacebar
|
// 32=Spacebar
|
||||||
if (evt.keyCode === 32 && curElementTagName !== 'BUTTON') {
|
if (evt.keyCode === 32 && curElementTagName !== 'BUTTON') {
|
||||||
//#if !(FIREFOX || MOZCENTRAL)
|
//#if (FIREFOX || MOZCENTRAL)
|
||||||
//// Workaround for issue in Firefox, that prevents scroll keys from working
|
//// Workaround for issue in Firefox, that prevents scroll keys from working
|
||||||
//// when elements with 'tabindex' are focused. (#3499)
|
//// when elements with 'tabindex' are focused. (#3499)
|
||||||
// PDFView.container.blur();
|
// PDFView.container.blur();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue