diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-11-13 13:33:32 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-11-13 13:34:04 +0100 |
commit | 5fb91dfd804cd6f3d585bb4113b9a68083ac71ee (patch) | |
tree | a991ef1fca23cff545e115eaad28065537161ad0 /sw/inc/SidebarWin.hxx | |
parent | e988ab84f1c32519bfca758086c749ba98a5a85f (diff) |
sw lok: fix blinking cursor position of comments
With this, it is possible to click inside a comment (and get a blinking
cursor inside a comment), and also possible to use the arrow keys to
native around and still get correct blinking cursor position.
Change-Id: I29eb1e60e4e571151f0b18bec8cf765ea09af09f
Diffstat (limited to 'sw/inc/SidebarWin.hxx')
-rw-r--r-- | sw/inc/SidebarWin.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/inc/SidebarWin.hxx b/sw/inc/SidebarWin.hxx index 9ddf14974f52..cb4914021e20 100644 --- a/sw/inc/SidebarWin.hxx +++ b/sw/inc/SidebarWin.hxx @@ -178,9 +178,10 @@ class SwSidebarWin : public vcl::Window virtual void Draw(OutputDevice* pDev, const Point&, const Size&, DrawFlags) override; virtual void KeyInput(const KeyEvent& rKeyEvt) override; + virtual void MouseButtonDown(const MouseEvent& rMouseEvent) override; void PaintTile(vcl::RenderContext& rRenderContext, const Rectangle& rRect); - /// Get the matching sub-widget inside this sidebar widget for rPointLogic, if any. - vcl::Window* IsHitWindow(const Point& rPointLogic); + /// Is there a matching sub-widget inside this sidebar widget for rPointLogic? + bool IsHitWindow(const Point& rPointLogic); protected: virtual void DataChanged( const DataChangedEvent& aEvent) override; |