From b1e4d14a805abf3d8c146c6354c03c488d47e811 Mon Sep 17 00:00:00 2001 From: Chayan Deb Date: Fri, 3 Jan 2025 18:08:33 +0530 Subject: [PATCH] [Changed behavior of a workflow action]: While the 'persistent-wire-draw' checkbox is ticked in the 'Options'-menu, pressing 'Esc' will immediately eject the user from wire-drawing-mode and end any multi-segment wire being drawn. Double click behavior remains the same as before. --- src/callback.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/callback.c b/src/callback.c index 7a1202c3..96791a6c 100644 --- a/src/callback.c +++ b/src/callback.c @@ -2635,6 +2635,9 @@ int rstate; /* (reduced state, without ShiftMask) */ } /* stuff that can be done reentrantly ... */ tclsetvar("tclstop", "1"); /* stop simulation if any running */ + if(tclgetboolvar("persistent_command") && (xctx->last_command & STARTWIRE)) { + xctx->last_command &= ~STARTWIRE; + } break; } if(key=='z' && rstate == 0) /* zoom box */