Lock old behavior of 'Esc'-keypress during persistent_command is active, behind the newly added TCL-option 'cadence_compat'. Wire drawing mode will now take two 'Esc' keypresses to clear, but if 'cadence_compat' is enabled, it will only take one.

This commit is contained in:
Chayan Deb 2025-02-03 13:01:11 +05:30
parent 01e0744244
commit 2349134a86
1 changed files with 1 additions and 1 deletions

View File

@ -3003,7 +3003,7 @@ int rstate; /* (reduced state, without ShiftMask) */
if(xctx->ui_state2 & MENUSTARTWIRE) {
xctx->ui_state2 &= ~MENUSTARTWIRE;
}
if(tclgetboolvar("persistent_command") && (xctx->last_command & STARTWIRE)) {
if(tclgetboolvar("persistent_command") && (xctx->last_command & STARTWIRE) && cadence_compat) {
xctx->last_command &= ~STARTWIRE;
if(snap_cursor) draw_snap_cursor(1);
}