From cc52eb237d90ba883693b646b2e73716a56eb825 Mon Sep 17 00:00:00 2001 From: robnee Date: Sat, 27 Mar 2021 12:26:49 -0400 Subject: [PATCH] Allow right click to end sketching of all entities --- src/mouse.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/mouse.cpp b/src/mouse.cpp index 77b52342..b8a191f7 100644 --- a/src/mouse.cpp +++ b/src/mouse.cpp @@ -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; }