summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2012-10-19 14:09:57 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-06-12 09:14:55 +0100
commit2d64de59c2109e378e4d38d6cad2510226c05435 (patch)
tree387cd0c0f93009c04ceba5311511aca676c5a2ed /sc
parente2e0db8f2967d866cba5c5400617d97aceaeefe9 (diff)
Resolves: #i121236# Added support for fast move of objects with cursor keys
(holding shift) for Writer and Calc (was alraedy in Draw/Impress) (cherry picked from commit d794e5f9ebb756958725183bbfcc88f457d1bc1d) Conflicts: sw/source/ui/docvw/edtwin.cxx Change-Id: I74e0ba40fa0900915adc84f722105e7fdddb0a19
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/drawfunc/fudraw.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/ui/drawfunc/fudraw.cxx b/sc/source/ui/drawfunc/fudraw.cxx
index 64e8c89daea2..6f73d8adebc1 100644
--- a/sc/source/ui/drawfunc/fudraw.cxx
+++ b/sc/source/ui/drawfunc/fudraw.cxx
@@ -461,6 +461,11 @@ sal_Bool FuDraw::KeyInput(const KeyEvent& rKEvt)
nX *= aLogicSizeOnePixel.Width();
nY *= aLogicSizeOnePixel.Height();
}
+ else if(rKEvt.GetKeyCode().IsShift()) // #i121236# Support for shift key in calc
+ {
+ nX *= 1000;
+ nY *= 1000;
+ }
else
{
// old, fixed move distance