[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.

This commit is contained in:
Chayan Deb 2025-01-03 18:08:33 +05:30
parent 052d7e8793
commit b1e4d14a80
1 changed files with 3 additions and 0 deletions

View File

@ -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 */