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

Don't let 'escape' whilst moving nodes interrupt things

Fixes #2960
This commit is contained in:
Nick O'Leary 2021-04-26 16:48:21 +01:00
parent f5a1c8bc49
commit 8e7efd98b2
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -1751,7 +1751,6 @@ RED.view = (function() {
}
}
if (mouse_mode == RED.state.IMPORT_DRAGGING) {
RED.keyboard.remove("escape");
updateActiveNodes();
RED.nodes.dirty(true);
}
@ -1786,6 +1785,9 @@ RED.view = (function() {
}
function selectNone() {
if (mouse_mode === RED.state.MOVING || mouse_mode === RED.state.MOVING_ACTIVE) {
return;
}
if (mouse_mode === RED.state.IMPORT_DRAGGING) {
clearSelection();
RED.history.pop();