diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2020-02-06 11:19:32 +0100 |
---|---|---|
committer | Marco Cecchetti <marco.cecchetti@collabora.com> | 2020-02-06 15:58:01 +0100 |
commit | 01f0d42f5ca9fb0e6e45b7bfcf51cb33c1a27bec (patch) | |
tree | b58e84202121b391e6330bb57aaf2a5444b0b3ce /vcl/source/window/seleng.cxx | |
parent | 61907e13a8feb0cac0a810b3bc3064248c38a8e6 (diff) |
lok: calc: formula input bar: set text selection as requested by clientcp-6.2-4CODE-4.2.0-4
Change-Id: If04ed3c1637249329530a73d20df9b9296d1004e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88089
Reviewed-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Tested-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Diffstat (limited to 'vcl/source/window/seleng.cxx')
-rw-r--r-- | vcl/source/window/seleng.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/vcl/source/window/seleng.cxx b/vcl/source/window/seleng.cxx index 8e81ce88d095..e659db7a5875 100644 --- a/vcl/source/window/seleng.cxx +++ b/vcl/source/window/seleng.cxx @@ -119,7 +119,9 @@ bool SelectionEngine::SelMouseButtonDown( const MouseEvent& rMEvt ) return false; sal_uInt16 nModifier = rMEvt.GetModifier() | nLockedMods; - if ( nModifier & KEY_MOD2 ) + bool nSwap = comphelper::LibreOfficeKit::isActive() && (nModifier & KEY_MOD1) && (nModifier & KEY_MOD2); + + if ( !nSwap && (nModifier & KEY_MOD2) ) return false; // in SingleSelection: filter Control-Key, // so that a D&D can be also started with a Ctrl-Click @@ -139,6 +141,13 @@ bool SelectionEngine::SelMouseButtonDown( const MouseEvent& rMEvt ) nModifier = 0; } + if (nSwap) + { + pFunctionSet->CreateAnchor(); + pFunctionSet->SetCursorAtPoint( aPos ); + return true; + } + switch ( nModifier ) { case 0: // KEY_NO_KEY |