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:
parent
01e0744244
commit
2349134a86
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue