From a59a80c98dc7d954cac5f65b954dc2df33b17996 Mon Sep 17 00:00:00 2001 From: Nikhil Marathe Date: Tue, 12 Oct 2010 18:05:21 +0000 Subject: [PATCH] More intuitive keyboard shortcuts for rotation This patch manually assigns the accelerator for Rotate Left and Rotate Right. The automatic acceleration sometimes assigns 'R' to Rotate Left due to it being first, which seems counter-intuitive to me. This patch makes 'Rotate Right' as 'R' and 'Rotate Left' as 'L'. Review request: http://svn.reviewboard.kde.org/r/5579/ svn path=/trunk/KDE/kdegraphics/okular/; revision=1185250 --- ui/pageview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/pageview.cpp b/ui/pageview.cpp index c1205071e..c4849a68b 100644 --- a/ui/pageview.cpp +++ b/ui/pageview.cpp @@ -363,12 +363,12 @@ void PageView::setupActions( KActionCollection * ac ) d->actionCollection = ac; // orientation menu actions - d->aRotateClockwise = new KAction( KIcon( "object-rotate-right" ), i18n( "Rotate Right" ), this ); + d->aRotateClockwise = new KAction( KIcon( "object-rotate-right" ), i18n( "Rotate &Right" ), this ); d->aRotateClockwise->setIconText( i18nc( "Rotate right", "Right" ) ); ac->addAction( "view_orientation_rotate_cw", d->aRotateClockwise ); d->aRotateClockwise->setEnabled( false ); connect( d->aRotateClockwise, SIGNAL( triggered() ), this, SLOT( slotRotateClockwise() ) ); - d->aRotateCounterClockwise = new KAction( KIcon( "object-rotate-left" ), i18n( "Rotate Left" ), this ); + d->aRotateCounterClockwise = new KAction( KIcon( "object-rotate-left" ), i18n( "Rotate &Left" ), this ); d->aRotateCounterClockwise->setIconText( i18nc( "Rotate left", "Left" ) ); ac->addAction( "view_orientation_rotate_ccw", d->aRotateCounterClockwise ); d->aRotateCounterClockwise->setEnabled( false );