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

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

Issue 888343003: Ctrl-G now selects page number in Material Design PDF Viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
Index: chrome/browser/resources/pdf/pdf.js
diff --git a/chrome/browser/resources/pdf/pdf.js b/chrome/browser/resources/pdf/pdf.js
index fb4d3ee53a3d7d19b7c918089fcc09b3de7097a1..6ca0836947c55ec15eb888cc65f461bce88e8b60 100644
--- a/chrome/browser/resources/pdf/pdf.js
+++ b/chrome/browser/resources/pdf/pdf.js
@@ -252,6 +252,13 @@ PDFViewer.prototype = {
});
}
return;
+ case 71: // g key.
+ if (this.isMaterial_ && (e.ctrlKey || e.metaKey)) {
+ this.pageIndicator_.select();
+ // Since this is bound to Find Text.
raymes 2015/02/01 23:47:02 // To prevent the default "find text" behavior in
Alexandre Carlton 2015/02/02 00:05:32 Done.
+ e.preventDefault();
+ }
+ return;
case 80: // p key.
if (e.ctrlKey || e.metaKey) {
this.print_();

Powered by Google App Engine
This is Rietveld 408576698