From 05b673cb2edb5b57a9b91b560ecbf8de2ef6c99c Mon Sep 17 00:00:00 2001 From: Chayan Deb Date: Sat, 15 Mar 2025 21:47:04 +0530 Subject: [PATCH] Fixed an issue where the keybind option ALT-Z used for toggling snap_cursor visibility in the schematic editor was not working without cadence_compat being enabled. Also, removed a redundant line of code. --- src/callback.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/callback.c b/src/callback.c index 6426cd3a..dd60fb4f 100644 --- a/src/callback.c +++ b/src/callback.c @@ -2608,7 +2608,6 @@ 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 +3742,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 && cadence_compat) { /* toggle snap-cursor option */ + else if(EQUAL_MODMASK) { /* toggle snap-cursor option */ if(tclgetboolvar("snap_cursor")) { tclsetvar("snap_cursor", "0"); draw_snap_cursor(1);