summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail..com>2020-02-22 19:44:59 -0900
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-02-24 08:04:16 +0100
commit7d803018968c229e8e77b6e8f6f242a76c4b24d7 (patch)
tree249b5f1571efbd05275aa5023bb338522859db79 /sfx2/source
parent9e329cd476298383d4e68b868f487a1f4ccca9d8 (diff)
Make undo/redo shortcuts work from sidebar docking window
Change-Id: I20ec2363d156d51528d4cce618311b8b919dfb87 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89314 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/sidebar/SidebarDockingWindow.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sfx2/source/sidebar/SidebarDockingWindow.cxx b/sfx2/source/sidebar/SidebarDockingWindow.cxx
index b74b96d79932..553d6df95455 100644
--- a/sfx2/source/sidebar/SidebarDockingWindow.cxx
+++ b/sfx2/source/sidebar/SidebarDockingWindow.cxx
@@ -21,6 +21,7 @@
#include <sfx2/sidebar/SidebarController.hxx>
#include <sidebar/PanelDescriptor.hxx>
+#include <comphelper/dispatchcommand.hxx>
#include <comphelper/processfactory.hxx>
#include <sfx2/lokhelper.hxx>
#include <sfx2/bindings.hxx>
@@ -276,6 +277,11 @@ bool SidebarDockingWindow::EventNotify(NotifyEvent& rEvent)
Close();
return true;
}
+ if (".uno:Undo" == aCommand || ".uno:Redo" == aCommand)
+ {
+ comphelper::dispatchCommand(aCommand, {});
+ return true;
+ }
}
else if (MouseNotifyEvent::MOUSEBUTTONDOWN == nType)
{