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

This commit is contained in:
Chayan Deb 2025-01-02 12:32:35 +05:30
parent 041d90548d
commit 96c3dde250
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}