Revert "Added shortcut support for all pyfa child windows (ctrl/cmd + w = close window)"
This reverts commit 14d0f50aff.
This commit is contained in:
@@ -122,17 +122,6 @@ class CharacterEditor(wx.Frame):
|
||||
self.registerEvents()
|
||||
|
||||
self.mainFrame = gui.mainFrame.MainFrame.getInstance()
|
||||
hiddenMenu = wx.Menu()
|
||||
hiddenMenu.Append(9912,"Close window")
|
||||
self.Bind(wx.EVT_MENU,self.HCloseWindow, id = 9913)
|
||||
actb = [(wx.ACCEL_CTRL, ord('W'), 9913),
|
||||
(wx.ACCEL_CMD, ord('W'), 9913)]
|
||||
atable = wx.AcceleratorTable(actb)
|
||||
self.SetAcceleratorTable(atable)
|
||||
|
||||
def HCloseWindow(self,event):
|
||||
self.Destroy()
|
||||
event.Skip()
|
||||
|
||||
def editingFinished(self, event):
|
||||
wx.PostEvent(self.mainFrame, CharListUpdated())
|
||||
|
||||
@@ -86,17 +86,6 @@ class ImportDialog(wx.Dialog):
|
||||
self.btnImport.Bind( wx.EVT_BUTTON, self.ImportFittings )
|
||||
self.Centre(wx.BOTH)
|
||||
|
||||
hiddenMenu = wx.Menu()
|
||||
hiddenMenu.Append(9915,"Close window")
|
||||
self.Bind(wx.EVT_MENU,self.HCloseWindow, id = 9915)
|
||||
actb = [(wx.ACCEL_CTRL, ord('W'), 9915),
|
||||
(wx.ACCEL_CMD, ord('W'), 9915)]
|
||||
atable = wx.AcceleratorTable(actb)
|
||||
self.SetAcceleratorTable(atable)
|
||||
|
||||
def HCloseWindow(self,event):
|
||||
self.Destroy()
|
||||
event.Skip()
|
||||
|
||||
def ImportFittings( self, event ):
|
||||
sFit = service.Fit.getInstance()
|
||||
@@ -223,18 +212,8 @@ class ExportDialog ( wx.Dialog ):
|
||||
self.btnExport.Bind( wx.EVT_BUTTON, self.ExportFit )
|
||||
self.chCtrl.Bind( wx.EVT_RADIOBOX, self.OnExtSelect )
|
||||
|
||||
hiddenMenu = wx.Menu()
|
||||
hiddenMenu.Append(9916,"Close window")
|
||||
self.Bind(wx.EVT_MENU,self.HCloseWindow, id = 9916)
|
||||
actb = [(wx.ACCEL_CTRL, ord('W'), 9916),
|
||||
(wx.ACCEL_CMD, ord('W'), 9916)]
|
||||
atable = wx.AcceleratorTable(actb)
|
||||
self.SetAcceleratorTable(atable)
|
||||
|
||||
def HCloseWindow(self,event):
|
||||
self.Destroy()
|
||||
event.Skip()
|
||||
|
||||
# Virtual event handlers, overide them in your derived class
|
||||
def OnExtSelect( self, event ):
|
||||
# selection = self.chCtrl.GetSelection()
|
||||
# if selection == 0:
|
||||
|
||||
@@ -87,19 +87,6 @@ class ItemStatsDialog(wx.Dialog):
|
||||
self.Show()
|
||||
|
||||
self.Bind(wx.EVT_CLOSE, self.closeEvent)
|
||||
hiddenMenu = wx.Menu()
|
||||
hiddenMenu.Append(9912,"Close window")
|
||||
self.Bind(wx.EVT_MENU,self.HCloseWindow, id = 9912)
|
||||
actb = [(wx.ACCEL_CTRL, ord('W'), 9912),
|
||||
(wx.ACCEL_CMD, ord('W'), 9912)]
|
||||
atable = wx.AcceleratorTable(actb)
|
||||
self.SetAcceleratorTable(atable)
|
||||
|
||||
def HCloseWindow(self,event):
|
||||
if self.dlgOrder==ItemStatsDialog.counter:
|
||||
ItemStatsDialog.counter -= 1
|
||||
self.Destroy()
|
||||
event.Skip()
|
||||
|
||||
def closeEvent(self, event):
|
||||
|
||||
|
||||
@@ -180,18 +180,6 @@ class DmgPatternEditorDlg (wx.Dialog):
|
||||
|
||||
self.patternChanged()
|
||||
|
||||
hiddenMenu = wx.Menu()
|
||||
hiddenMenu.Append(9914,"Close window")
|
||||
self.Bind(wx.EVT_MENU,self.HCloseWindow, id = 9914)
|
||||
actb = [(wx.ACCEL_CTRL, ord('W'), 9914),
|
||||
(wx.ACCEL_CMD, ord('W'), 9914)]
|
||||
atable = wx.AcceleratorTable(actb)
|
||||
self.SetAcceleratorTable(atable)
|
||||
|
||||
def HCloseWindow(self,event):
|
||||
self.Destroy()
|
||||
event.Skip()
|
||||
|
||||
def ValuesUpdated(self, event=None):
|
||||
if self.block:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user