[Selection Using Crosshair]: Added new functionality of using the crosshair to select objects in the schematic, instead of the default mouse-pointer based selection. This functionality will only take effect if the crosshair feature is enabled by the user.

This commit is contained in:
Chayan Deb 2025-01-25 12:47:23 +05:30
parent 2137fa0aef
commit 260beffe71
1 changed files with 2 additions and 1 deletions

View File

@ -4301,7 +4301,8 @@ int rstate; /* (reduced state, without ShiftMask) */
}
if(!xctx->intuitive_interface && no_shift_no_ctrl ) unselect_all(1);
sel = find_closest_obj(xctx->mousex, xctx->mousey, 0);
if(draw_xhair) sel = find_closest_obj(xctx->mousex_snap, xctx->mousey_snap, 0);
else sel = find_closest_obj(xctx->mousex, xctx->mousey, 0);
switch(sel.type) {
case WIRE: if(xctx->wire[sel.n].sel) already_selected = 1; break;