From 96c3dde25007276d4e14833e3cdc9988ba8ac247 Mon Sep 17 00:00:00 2001 From: Chayan Deb Date: Thu, 2 Jan 2025 12:32:35 +0530 Subject: [PATCH] [Feature enhancement]: Pressing the 'w'-key now sets the schematic editor to wire-drawing mode, instead of immediately placing down the wire. Press LMB in this state to start drawing the wire. --- src/callback.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/callback.c b/src/callback.c index 53af0107..2ffefcc7 100644 --- a/src/callback.c +++ b/src/callback.c @@ -2577,10 +2577,12 @@ int rstate; /* (reduced state, without ShiftMask) */ { int prev_state = xctx->ui_state; if(xctx->semaphore >= 2) break; - start_wire(xctx->mousex_snap, xctx->mousey_snap); if(prev_state == STARTWIRE) { + start_wire(xctx->mousex_snap, xctx->mousey_snap); tcleval("set constr_mv 0" ); xctx->constr_mv=0; + } else{ + tcleval("xschem wire"); } break; }