Add bindkey `Alt -` (specify line width) in addition to menu entry

This commit is contained in:
stefan schippers 2025-04-09 10:07:33 +02:00
parent b2e5a5235e
commit 8d0837d5e9
5 changed files with 12 additions and 6 deletions

View File

@ -262,8 +262,9 @@ ctrl 'z' Zoom out
shift '*' Postscript/pdf print
ctr+shift '*' Xpm/png print
alt+shift '*' Svg print
ctrl '-' Test mode: change line width
ctrl '+' Test mode: change line width
ctrl '-' Decrease line width
alt '-' Set line width
ctrl '+' Increase line width
- '_' Toggle change line width
- '%' Toggle draw grid
ctrl '=' Toggle fill rectangles

View File

@ -3892,6 +3892,9 @@ static void handle_key_press(int event, KeySym key, int state, int rstate, int m
tclsetboolvar("change_lw", 0);
draw();
}
else if(EQUAL_MODMASK) {
tcleval("set change_lw 0; input_line \"Enter linewidth (float):\" \"xschem line_width\"");
}
break;
case XK_Return:

View File

@ -203,8 +203,9 @@ ctrl 'z' Zoom out
shift '*' Postscript/pdf print
ctr+shift '*' Xpm/png print
alt+shift '*' Svg print
ctrl '-' Test mode: change line width
ctrl '+' Test mode: change line width
ctrl '-' Decrease line width
alt '-' Set line width
ctrl '+' Increase line width
- '_' Toggle change line width
- '%' Toggle draw grid
ctrl '=' Toggle fill rectangles

View File

@ -9108,7 +9108,7 @@ proc build_widgets { {topwin {} } } {
$topwin.menubar.view add checkbutton -label "Toggle variable line width" -variable change_lw \
-selectcolor $selectcolor -accelerator {_}
$topwin.menubar.view add command -label "Set line width" \
$topwin.menubar.view add command -label "Set line width" -accelerator {Alt+-} \
-command {
set change_lw 0
input_line "Enter linewidth (float):" "xschem line_width"

View File

@ -404,7 +404,7 @@ T {Toggle fill style} 962.5 -355 0 0 0.18 0.18 {layer=4}
T {-} 962.5 -343.75 0 0 0.18 0.18 {layer=12}
T {-} 962.5 -332.5 0 0 0.18 0.18 {}
T {Decr line width} 882.5 -355 0 0 0.18 0.18 {layer=4}
T {Change line w.} 882.5 -343.75 0 0 0.18 0.18 {layer=12}
T {Variab. line w.} 882.5 -343.75 0 0 0.18 0.18 {layer=12}
T {-} 882.5 -332.5 0 0 0.18 0.18 {}
T {Pr.Scr} 1202.5 -477.5 0 0 0.4 0.4 {lock=0}
T {Grab scr area} 1202.5 -412.5 0 0 0.18 0.18 {}
@ -448,3 +448,4 @@ T {-} 842.5 -92.5 0 0 0.18 0.18 {}
T {-} 842.5 -126.25 0 0 0.18 0.18 {layer=7}
T {-} 842.5 -137.5 0 0 0.18 0.18 {layer=6}
T {Incr line width} 962.5 -366.25 0 0 0.18 0.18 {layer=6}
T {Set line width} 882.5 -366.25 0 0 0.18 0.18 {layer=7}