if an instance is selected with ctrl-shift-click in intuitive_interface mode, move instance creating new wires to pins connected to something. This was working as a plain stretch-move (stretch already attached nets instead of creating new ones)

This commit is contained in:
stefan schippers 2025-03-26 02:29:35 +01:00
parent 5e14ccf5a0
commit dcb5689191
1 changed files with 1 additions and 1 deletions

View File

@ -4349,7 +4349,7 @@ static void handle_button_press(int event, int state, int rstate, KeySym key, in
int stretch = (state & ControlMask ? 1 : 0) ^ enable_stretch;
xctx->drag_elements = 1;
/* select attached nets depending on ControlMask and enable_stretch */
if(stretch) {
if(stretch && !(state & ShiftMask)) {
select_attached_nets(); /* stretch nets that land on selected instance pins */
}
/* if dragging instances with stretch enabled and Shift down add wires to pins