summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2023-04-27 20:32:03 -0800
committerJim Raykowski <raykowj@gmail.com>2023-05-07 01:23:20 +0200
commit50deb478e97aa9cfd023c5fa2f9d567b0b5797c2 (patch)
tree2f1adf74f4be9764d3d0262756bd11d4078f4cda /vcl
parent45646542a638ec452b00c0c36a8a65d7194defcc (diff)
tdf#154211 SwNavigator: select range of content by shift + double-
click or shift + enter key Enhancement to make a selection from the current cursor position in the document to the position in the document that is navigated to when a content entry in the Navigator tree is double clicked or the enter key is pressed. No selection is made when the current cursor position is in a table, header, footer, footnote, or frame. To make shift + double-click behavior for x11 and qt5 the same as gtk3, FunctionSet::SetCursorAtPoint is added to the Shift case for SelectionMode::Single in SelectionEngine::SelMouseButtonDown. Change-Id: Id845dad8011ff7777a24f9b2730f10c62271c368 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151157 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/seleng.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/source/window/seleng.cxx b/vcl/source/window/seleng.cxx
index f81ffe6cd6d3..9cb70cf99d83 100644
--- a/vcl/source/window/seleng.cxx
+++ b/vcl/source/window/seleng.cxx
@@ -181,6 +181,7 @@ bool SelectionEngine::SelMouseButtonDown( const MouseEvent& rMEvt )
{
ReleaseMouse();
nFlags &= ~SelectionEngineFlags::IN_SEL;
+ pFunctionSet->SetCursorAtPoint(aPos);
return false;
}
if ( nFlags & SelectionEngineFlags::ADD_ALW )