Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1447)

Unified Diff: chrome/browser/resources/pdf/pdf.js

Issue 606933002: PDF: Change the rotate shortcut keys to ctrl+[] on all platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pdf/instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/pdf/pdf.js
diff --git a/chrome/browser/resources/pdf/pdf.js b/chrome/browser/resources/pdf/pdf.js
index 18b008da3d6ddb7c2d8eca4ebca3dd4f575f5c38..0616c8df40ab1d66ea0ae1a68b962736a9fa4c32 100644
--- a/chrome/browser/resources/pdf/pdf.js
+++ b/chrome/browser/resources/pdf/pdf.js
@@ -235,14 +235,18 @@ PDFViewer.prototype = {
}
return;
case 219: // left bracket.
- this.plugin_.postMessage({
- type: 'rotateCounterclockwise',
- });
+ if (e.ctrlKey) {
+ this.plugin_.postMessage({
+ type: 'rotateCounterclockwise',
+ });
+ }
return;
case 221: // right bracket.
- this.plugin_.postMessage({
- type: 'rotateClockwise',
- });
+ if (e.ctrlKey) {
+ this.plugin_.postMessage({
+ type: 'rotateClockwise',
+ });
+ }
return;
}
},
« no previous file with comments | « no previous file | pdf/instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698