summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/view.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index c2aea203f176..21d500c1d937 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -64,6 +64,7 @@
#include <vcl/virdev.hxx>
#include <sal/log.hxx>
#include <tools/svborder.hxx>
+#include <o3tl/temporary.hxx>
#include <unotools/streamwrap.hxx>
@@ -686,6 +687,12 @@ bool SmGraphicWidget::KeyInput(const KeyEvent& rKEvt)
case KeyFuncType::PASTE:
rCursor.Paste();
break;
+ case KeyFuncType::UNDO:
+ GetDoc()->Execute(o3tl::temporary(SfxRequest(GetView().GetFrame(), SID_UNDO)));
+ break;
+ case KeyFuncType::REDO:
+ GetDoc()->Execute(o3tl::temporary(SfxRequest(GetView().GetFrame(), SID_REDO)));
+ break;
default:
switch (rKEvt.GetKeyCode().GetCode())
{