Revert change which allowed to use alt key as modifier to open fits in new tabs or switch modules to offline

This commit is contained in:
DarkPhoenix
2019-04-20 23:47:23 +03:00
parent 8d0ad26159
commit 4c736de598

View File

@@ -74,7 +74,7 @@ class FitSpawner(gui.multiSwitch.TabSpawner):
sFit = Fit.getInstance()
openFitInNew = sFit.serviceFittingOptions["openFitInNew"]
mstate = wx.GetMouseState()
modifierKey = mstate.cmdDown or mstate.altDown
modifierKey = mstate.cmdDown
if from_import or (not openFitInNew and modifierKey) or startup or (openFitInNew and not modifierKey):
self.multiSwitch.AddPage()
@@ -625,7 +625,7 @@ class FittingView(d.Display):
else:
mods = self.getSelectedMods()
ctrl = event.cmdDown or event.altDown or event.middleIsDown
ctrl = event.cmdDown or event.middleIsDown
click = "ctrl" if ctrl is True else "right" if event.GetButton() == 3 else "left"
try: