From 3d544e0477034a0a505b20b50e69bef544f3d829 Mon Sep 17 00:00:00 2001 From: cncfanatics Date: Thu, 28 Oct 2010 15:13:25 +0200 Subject: [PATCH] Bind CTRL+C & CTRL+V (CTRL+C nonfunctional for now due to unrelated stuff) --- gui/mainMenuBar.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gui/mainMenuBar.py b/gui/mainMenuBar.py index 831c88c7e..d983bfd25 100644 --- a/gui/mainMenuBar.py +++ b/gui/mainMenuBar.py @@ -60,8 +60,10 @@ class MainMenuBar(wx.MenuBar): clipboardMenu.Append(self.idExportXml, "&XML", "Copy the XML export of this fit to the clipboard") clipboardMenu.Append(self.idExportDna, "&DNA", "Copy the DNA export of this fit to the clipboard") - fitMenu.AppendMenu(wx.ID_COPY, "&To Clipboard", clipboardMenu, "Export a fit to the clipboard") - fitMenu.Append(wx.ID_PASTE, "&From Clipboard", "Import a fit from the clipboard") + copyText = "&To Clipboard" + ("\tCTRL+C" if 'wxMSW' in wx.PlatformInfo else "") + pasteText = "&From Clipboard" + ("\tCTRL+V" if 'wxMSW' in wx.PlatformInfo else "") + fitMenu.AppendMenu(wx.ID_COPY, copyText, clipboardMenu, "Export a fit to the clipboard") + fitMenu.Append(wx.ID_PASTE, pasteText, "Import a fit from the clipboard") # Character menu