mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Pressing escape whilst DETACH_DRAGGING should revert change
This commit is contained in:
parent
58c94b7773
commit
30f2b96c68
@ -1916,7 +1916,11 @@ RED.view = (function() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mouse_mode === RED.state.DETACHED_DRAGGING) {
|
if (mouse_mode === RED.state.DETACHED_DRAGGING) {
|
||||||
|
var node = movingSet.get(0);
|
||||||
|
node.n.x = node.ox;
|
||||||
|
node.n.y = node.oy;
|
||||||
clearSelection();
|
clearSelection();
|
||||||
|
RED.history.pop();
|
||||||
mouse_mode = 0;
|
mouse_mode = 0;
|
||||||
} else if (mouse_mode === RED.state.IMPORT_DRAGGING) {
|
} else if (mouse_mode === RED.state.IMPORT_DRAGGING) {
|
||||||
clearSelection();
|
clearSelection();
|
||||||
|
Loading…
Reference in New Issue
Block a user