From 34c46a257bb44fad987862c37ba6bfb0945b98aa Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 2 Jun 2014 10:04:57 +0400 Subject: [PATCH] =?utf8?q?refs=20#78=20-=20reported=20by=20Herv=C3=A9=20Le?= =?utf8?q?grand:=20do=20not=20create=20segment=20if=20mouse=20moved=20out?= =?utf8?q?=20of=203D=20viewer=20without=20click?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Accept any key to set the second point in order to apply the line creation even if the "Enter" has not been pressed in the second point widget It is right, for the current version, that the "Tab" emulates to the second point selection in the viewer. --- src/PartSet/PartSet_OperationSketchLine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PartSet/PartSet_OperationSketchLine.cpp b/src/PartSet/PartSet_OperationSketchLine.cpp index 4ca7d3200..1a1cdbc0e 100644 --- a/src/PartSet/PartSet_OperationSketchLine.cpp +++ b/src/PartSet/PartSet_OperationSketchLine.cpp @@ -209,7 +209,8 @@ void PartSet_OperationSketchLine::mouseMoved(QMouseEvent* theEvent, Handle(V3d_V void PartSet_OperationSketchLine::keyReleased(std::string theName, QKeyEvent* theEvent) { int aKeyType = theEvent->key(); - if (!theName.empty() && aKeyType == Qt::Key_Return) { + // the second point should be activated by any modification in the property panel + if (!theName.empty() /*&& aKeyType == Qt::Key_Return*/) { if (theName == LINE_ATTR_START) { setPointSelectionMode(SM_SecondPoint, false); } -- 2.39.2