Add CTRL+W binding for close on windows

This commit is contained in:
cncfanatics
2010-10-25 10:35:35 +02:00
parent 4176191f37
commit d95fca8582

View File

@@ -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)