Allow right click to end sketching of all entities

pull/993/head
robnee 2021-03-27 12:26:49 -04:00 committed by phkahler
parent 2e88c5e0da
commit cc52eb237d
1 changed files with 7 additions and 2 deletions

View File

@ -526,11 +526,16 @@ void GraphicsWindow::MouseRightUp(double x, double y) {
}
if(pending.operation == Pending::DRAGGING_NEW_LINE_POINT ||
pending.operation == Pending::DRAGGING_NEW_CUBIC_POINT)
pending.operation == Pending::DRAGGING_NEW_CUBIC_POINT ||
pending.operation == Pending::DRAGGING_NEW_ARC_POINT ||
pending.operation == Pending::DRAGGING_NEW_RADIUS ||
pending.operation == Pending::DRAGGING_NEW_POINT
)
{
// Special case; use a right click to stop drawing lines, since
// a left click would draw another one. This is quicker and more
// intuitive than hitting escape. Likewise for new cubic segments.
// intuitive than hitting escape. Likewise for other entities
// for consistency.
ClearPending();
return;
}