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.
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);
}