sfx2/source/sidebar/SidebarDockingWindow.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 7d803018968c229e8e77b6e8f6f242a76c4b24d7 Author: Jim Raykowski <rayk...@gmail..com> AuthorDate: Sat Feb 22 19:44:59 2020 -0900 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon Feb 24 08:04:16 2020 +0100 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.gran...@collabora.co.uk> 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) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits