diff --git a/src/callback.c b/src/callback.c index 1d1f34ad..6bc67427 100644 --- a/src/callback.c +++ b/src/callback.c @@ -3764,12 +3764,16 @@ static void handle_key_press(int event, KeySym key, int state, int rstate, int m break; case ' ': - if(xctx->ui_state & STARTWIRE) { /* & instead of == 20190409 */ + if(xctx->ui_state & STARTMOVE) { + draw_selection(xctx->gctiled,0); + xctx->manhattan_lines++; + xctx->manhattan_lines %=3; + draw_selection(xctx->gc[SELLAYER], 0); + } else if(xctx->ui_state & STARTWIRE) { /* & instead of == 20190409 */ new_wire(RUBBER|CLEAR, xctx->mousex_snap, xctx->mousey_snap); xctx->manhattan_lines++; xctx->manhattan_lines %=3; new_wire(RUBBER, xctx->mousex_snap, xctx->mousey_snap); - } else if(xctx->ui_state & STARTLINE) { new_line(RUBBER|CLEAR, xctx->mousex_snap, xctx->mousey_snap); xctx->manhattan_lines++; diff --git a/src/xschem.tcl b/src/xschem.tcl index 122a0d75..51c4575c 100644 --- a/src/xschem.tcl +++ b/src/xschem.tcl @@ -8736,17 +8736,12 @@ proc build_widgets { {topwin {} } } { -variable intuitive_interface -selectcolor $selectcolor \ -command {xschem set intuitive_interface $intuitive_interface} - $topwin.menubar.option add checkbutton -label "Draw crosshair" \ - -variable draw_crosshair -selectcolor $selectcolor -accelerator {Alt-X} - $topwin.menubar.option add checkbutton -label "Draw persistent snap cursor" -variable snap_cursor \ - -selectcolor $selectcolor -accelerator {Alt-Z} - $topwin.menubar.option add cascade -label "Crosshair" \ -menu $topwin.menubar.option.crosshair menu $topwin.menubar.option.crosshair -tearoff 0 $topwin.menubar.option.crosshair add checkbutton -label "Draw snap cursor" \ - -variable snap_cursor -selectcolor $selectcolor + -variable snap_cursor -selectcolor $selectcolor -accelerator {Alt-Z} $topwin.menubar.option.crosshair add checkbutton -label "Draw crosshair" \ -variable draw_crosshair -selectcolor $selectcolor -accelerator {Alt-X} $topwin.menubar.option.crosshair add command -label "Crosshair size" \