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

Unified Diff: pdf/instance.cc

Issue 581913003: PDF Viewer - Add keyboard shortcuts for rotation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: pdf/instance.cc
diff --git a/pdf/instance.cc b/pdf/instance.cc
index bb13fcc210eba34fdd4a03dde8fe5c9ff6b73ad0..7b0691690839e936e04bec70b12c1b5028382b3c 100644
--- a/pdf/instance.cc
+++ b/pdf/instance.cc
@@ -590,6 +590,14 @@ bool Instance::HandleInputEvent(const pp::InputEvent& event) {
case 'A':
engine_->SelectAll();
return true;
+ case ui::VKEY_OEM_4:
+ // Left bracket.
+ engine_->RotateCounterclockwise();
+ return true;
+ case ui::VKEY_OEM_6:
+ // Right bracket.
+ engine_->RotateClockwise();
+ return true;
}
}

Powered by Google App Engine
This is Rietveld 408576698