1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Allow 'escape' to cancel wire-slicing

This commit is contained in:
Nick O'Leary 2022-01-12 17:24:25 +00:00
parent f3997128b9
commit af949c62c2
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -1959,6 +1959,16 @@ RED.view = (function() {
clearSelection();
RED.history.pop();
mouse_mode = 0;
} else if (mouse_mode === RED.state.SLICING) {
if (slicePath) {
slicePath.remove();
slicePath = null;
resetMouseVars()
}
clearSelection();
} else if (lasso) {
lasso.remove();
lasso = null;
} else if (activeGroup) {
exitActiveGroup()
} else {