From 1adcc578599e76313ac44dc92eda77cedd20030e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 30 Oct 2009 15:52:07 +0000 Subject: [PATCH] * The new Command-[Shift-]'R' shortcut for rotation is annoyingly unhandy; added '[' and ']' to rotate without having the Command key held. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33846 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/showimage/ShowImageView.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/apps/showimage/ShowImageView.cpp b/src/apps/showimage/ShowImageView.cpp index f57d8f13b1..44689087f7 100644 --- a/src/apps/showimage/ShowImageView.cpp +++ b/src/apps/showimage/ShowImageView.cpp @@ -1646,7 +1646,7 @@ ShowImageView::KeyDown(const char* bytes, int32 numBytes) return; } - bool shiftKeyDown = (modifiers() & B_SHIFT_KEY) > 0; + bool shiftKeyDown = (modifiers() & B_SHIFT_KEY) != 0; switch (*bytes) { case B_DOWN_ARROW: @@ -1715,6 +1715,12 @@ ShowImageView::KeyDown(const char* bytes, int32 numBytes) case '-': ZoomOut(); break; + case '[': + Rotate(270); + break; + case ']': + Rotate(90); + break; } }