From 4c736de598237164c10031c03b68c84a28148405 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Sat, 20 Apr 2019 23:47:23 +0300 Subject: [PATCH] Revert change which allowed to use alt key as modifier to open fits in new tabs or switch modules to offline --- gui/builtinViews/fittingView.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/builtinViews/fittingView.py b/gui/builtinViews/fittingView.py index 08c2d973d..fed1a5417 100644 --- a/gui/builtinViews/fittingView.py +++ b/gui/builtinViews/fittingView.py @@ -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: