summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2019-06-23 17:54:49 -0800
committerXisco FaulĂ­ <xiscofauli@libreoffice.org>2019-07-03 16:27:56 +0200
commitd51cabce47914a44a5145f2ebf89f920a4c38cb2 (patch)
tree7662036a0cab587b4e8df40b5fbd77154d70d2c9
parenttdf#113448 don't export any font for radio buttons (diff)
downloadcore-d51cabce47914a44a5145f2ebf89f920a4c38cb2.tar.gz
core-d51cabce47914a44a5145f2ebf89f920a4c38cb2.zip
tdf#126061 Make text edit outliner view show cursor
Change-Id: Ic4e8b5984d5b21c3b789eba943d35d4cad1ba867 Reviewed-on: https://gerrit.libreoffice.org/74676 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com> (cherry picked from commit 3a662445a0e3666637e5eb140b106a1347f050eb) Reviewed-on: https://gerrit.libreoffice.org/75028 Reviewed-by: Xisco FaulĂ­ <xiscofauli@libreoffice.org>
-rw-r--r--sd/source/ui/view/sdwindow.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/sd/source/ui/view/sdwindow.cxx b/sd/source/ui/view/sdwindow.cxx
index 06840e6345c5..7a30096c52fd 100644
--- a/sd/source/ui/view/sdwindow.cxx
+++ b/sd/source/ui/view/sdwindow.cxx
@@ -265,6 +265,16 @@ void Window::Command(const CommandEvent& rCEvt)
//pass at least alt press/release to parent impl
if (rCEvt.GetCommand() == CommandEventId::ModKeyChange)
vcl::Window::Command(rCEvt);
+ //show the text edit outliner view cursor
+ else if (!HasFocus() && rCEvt.GetCommand() == CommandEventId::CursorPos)
+ {
+ OutlinerView* pOLV = mpViewShell->GetView()->GetTextEditOutlinerView();
+ if (pOLV && this == pOLV->GetWindow())
+ {
+ GrabFocus();
+ pOLV->ShowCursor();
+ }
+ }
}
bool Window::EventNotify( NotifyEvent& rNEvt )