diff options
author | n.bansal <n.bansal@samsung.com> | 2014-09-19 12:16:09 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-19 19:16:55 +0000 |
commit | cb0114633bb478c4636126d9d2ed87c1580e9ff8 (patch) | |
tree | d8e6b08689dd6b456abc0c2c7dca26c09c537c68 /pdf/instance.cc | |
parent | 62bb80ad12b37f318b69b77c137a943b673cc59f (diff) | |
download | chromium_src-cb0114633bb478c4636126d9d2ed87c1580e9ff8.zip chromium_src-cb0114633bb478c4636126d9d2ed87c1580e9ff8.tar.gz chromium_src-cb0114633bb478c4636126d9d2ed87c1580e9ff8.tar.bz2 |
PDF Viewer - Add keyboard shortcuts for rotation
Currently there are no keyboard shortcuts to rotate pdf
documents. This patch adds the following keyboard shortcuts
to rotate pdf documents :
Rotate counterclockwise : Control + [
Rotate clockwise : Control + ]
BUG=111232
Review URL: https://codereview.chromium.org/581913003
Cr-Commit-Position: refs/heads/master@{#295757}
Diffstat (limited to 'pdf/instance.cc')
-rw-r--r-- | pdf/instance.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pdf/instance.cc b/pdf/instance.cc index 7706a69..6a68400 100644 --- a/pdf/instance.cc +++ b/pdf/instance.cc @@ -594,6 +594,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; } } |