Skip to content

Commit

Permalink
Fixes Issue #422
Browse files Browse the repository at this point in the history
  • Loading branch information
MAKOMO committed Nov 6, 2019
1 parent e7cd9af commit 03864b5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/artisanlib/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@
import matplotlib.backends.backend_svg # @UnusedImport
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas # @Reimport
from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar # @Reimport

from matplotlib.backend_bases import LocationEvent as mplLocationevent

import matplotlib.backends.qt_editor.figureoptions as figureoptions


Expand Down Expand Up @@ -18996,6 +18997,10 @@ def keyPressEvent(self,event):
self.automaticsave()
elif key == 68: #letter D (toggle xy between temp and RoR scale)
self.qmc.fmt_data_RoR = not (self.qmc.fmt_data_RoR)
try:
aw.ntb.mouse_move(mplLocationevent.lastevent)
except:
pass
elif key == 67: #letter C (controls)
self.toggleControls()
elif key == 88: #letter X (readings)
Expand Down

0 comments on commit 03864b5

Please sign in to comment.