From 7d803018968c229e8e77b6e8f6f242a76c4b24d7 Mon Sep 17 00:00:00 2001 From: Jim Raykowski Date: Sat, 22 Feb 2020 19:44:59 -0900 Subject: [PATCH] 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 --- sfx2/source/sidebar/SidebarDockingWindow.cxx | 6 ++++++ 1 file changed, 6 insertions(+) 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 #include +#include #include #include #include @@ -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) {