From d95fca85823130405c5f75b977274c616fabfbc1 Mon Sep 17 00:00:00 2001 From: cncfanatics Date: Mon, 25 Oct 2010 10:35:35 +0200 Subject: [PATCH] Add CTRL+W binding for close on windows --- gui/mainMenuBar.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gui/mainMenuBar.py b/gui/mainMenuBar.py index 5c827a310..724e9a78a 100644 --- a/gui/mainMenuBar.py +++ b/gui/mainMenuBar.py @@ -32,7 +32,10 @@ class MainMenuBar(wx.MenuBar): # File menu fileMenu = wx.Menu() self.Append(fileMenu, "&File") - fileMenu.Append(wx.ID_CLOSE) + if 'wxMSW' in wx.PlatformInfo: + fileMenu.Append(wx.ID_CLOSE, "&Close\tCTRL+W", "Close the currently open fit") + else: + fileMenu.Append(wx.ID_CLOSE) fileMenu.Append(wx.ID_EXIT)