align with SuperCD

This commit is contained in:
stefan schippers 2025-03-16 20:16:56 +01:00
parent e63ab1e71f
commit 3d3df8796a
1 changed files with 6 additions and 3 deletions

View File

@ -2609,6 +2609,7 @@ static void handle_key_press(int event, KeySym key, int state, int rstate, int m
int cadence_compat, int wire_draw_active, int snap_cursor)
{
char str[PATH_MAX + 100];
int dr_gr;
switch (key) {
case '0':
case '1':
@ -3743,7 +3744,7 @@ static void handle_key_press(int event, KeySym key, int state, int rstate, int m
else if(rstate==ControlMask) { /* zoom out */
view_unzoom(0.0);
}
else if(EQUAL_MODMASK) { /* toggle snap-cursor option */
else if(EQUAL_MODMASK && cadence_compat) { /* toggle snap-cursor option */
if(tclgetboolvar("snap_cursor")) {
tclsetvar("snap_cursor", "0");
draw_snap_cursor(1);
@ -4505,8 +4506,10 @@ static void handle_double_click(int event, int state, KeySym key, int button,
edit_property(0);
} else {
if(xctx->ui_state & STARTWIRE) {
redraw_w_a_l_r_p_z_rubbers(1);
start_wire(mx, my);
if( cadence_compat ) {
redraw_w_a_l_r_p_z_rubbers(1);
start_wire(mx, my);
}
xctx->ui_state &= ~STARTWIRE;
}
if(xctx->ui_state & STARTLINE) {