From 98579c774b9c4862b8d254207cccf8d1448d63bd Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Mon, 20 Apr 2020 14:42:32 +0300 Subject: [PATCH] Change shortcuts for undo/redo from built-in wx standards to ctrl-z and ctrl-y --- gui/mainMenuBar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/mainMenuBar.py b/gui/mainMenuBar.py index 83ea58d0a..e2269275e 100644 --- a/gui/mainMenuBar.py +++ b/gui/mainMenuBar.py @@ -80,8 +80,8 @@ class MainMenuBar(wx.MenuBar): fitMenu = wx.Menu() self.Append(fitMenu, "Fi&t") - fitMenu.Append(wx.ID_UNDO) - fitMenu.Append(wx.ID_REDO) + fitMenu.Append(wx.ID_UNDO, "&Undo\tCTRL+Z", "Undo the most recent action") + fitMenu.Append(wx.ID_REDO, "&Redo\tCTRL+Y", "Redo the most recent undone action") fitMenu.AppendSeparator() fitMenu.Append(wx.ID_COPY, "&To Clipboard\tCTRL+C", "Export a fit to the clipboard")