From aff21d7cb02a36659ac289708a11c2c1a05b2021 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Wed, 30 May 2018 08:02:03 +0300 Subject: [PATCH] - changed the default way to copy the coordinates to clipboard. Before, at each mouse click on canvaas the coordinates were copied to clipboard. Now for the same feet it require to have the CTRL key pressed while clicking on canvas for the coordinates to be copied. --- FlatCAMApp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/FlatCAMApp.py b/FlatCAMApp.py index ea230c41..e3b0ddf8 100644 --- a/FlatCAMApp.py +++ b/FlatCAMApp.py @@ -1639,8 +1639,9 @@ class App(QtCore.QObject): try: App.log.debug('button=%d, x=%d, y=%d, xdata=%f, ydata=%f' % ( event.button, event.x, event.y, event.xdata, event.ydata)) - - self.clipboard.setText(self.defaults["point_clipboard_format"] % (event.xdata, event.ydata)) + modifiers = QtGui.QApplication.keyboardModifiers() + if modifiers == QtCore.Qt.ControlModifier: + self.clipboard.setText(self.defaults["point_clipboard_format"] % (event.xdata, event.ydata)) except Exception, e: App.log.debug("Outside plot?")