Index: chrome/browser/resources/pdf/pdf.js |
diff --git a/chrome/browser/resources/pdf/pdf.js b/chrome/browser/resources/pdf/pdf.js |
index 8db8ba16f94a559e8e11c943398ea1669d866b68..2e2ce5d6b023f7e433f7ee3c3b79b053eecb5b02 100644 |
--- a/chrome/browser/resources/pdf/pdf.js |
+++ b/chrome/browser/resources/pdf/pdf.js |
@@ -320,7 +320,7 @@ PDFViewer.prototype = { |
pageDownHandler(); |
return; |
case 37: // Left arrow key. |
- if (!(e.altKey || e.ctrlKey || e.metaKey || e.shiftKey)) { |
+ if (!hasKeyModifiers(e)) { |
// Go to the previous page if there are no horizontal scrollbars and |
// no form field is focused. |
if (!(this.viewport_.documentHasScrollbars().horizontal || |
@@ -341,7 +341,7 @@ PDFViewer.prototype = { |
} |
return; |
case 39: // Right arrow key. |
- if (!(e.altKey || e.ctrlKey || e.metaKey || e.shiftKey)) { |
+ if (!hasKeyModifiers(e)) { |
// Go to the next page if there are no horizontal scrollbars and no |
// form field is focused. |
if (!(this.viewport_.documentHasScrollbars().horizontal || |