Skip to content

Commit

Permalink
GUI: Allow ESC to finish drawing bezier curves instead of deleting them.
Browse files Browse the repository at this point in the history
With this pressing ESC while drawing a bezier curve finishes it instead of
deleting it. This reverts the behaviour introduced in b34d9a2
(p.r. solvespace#1386). ESC still deletes the last segment of line segments and
cancels arcs and circles.

This makes it easier to draw non closed curves - otherwise the only way
to finish them was with a right-click.
  • Loading branch information
ruevs committed Nov 21, 2024
1 parent d97b9be commit fa4171d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/graphicswin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,6 @@ void GraphicsWindow::MenuEdit(Command id) {
if ( (SS.GW.pending.operation == Pending::DRAGGING_NEW_POINT)
|| (SS.GW.pending.operation == Pending::DRAGGING_NEW_LINE_POINT)
|| (SS.GW.pending.operation == Pending::DRAGGING_NEW_ARC_POINT)
|| (SS.GW.pending.operation == Pending::DRAGGING_NEW_CUBIC_POINT)
|| (SS.GW.pending.operation == Pending::DRAGGING_NEW_RADIUS) )
{
SS.GW.ClearSuper();
Expand Down

0 comments on commit fa4171d

Please sign in to comment.