From 8e22e45bcae32f6400cd1dcf90c6333ee49f2722 Mon Sep 17 00:00:00 2001 From: alschmiedt Date: Fri, 20 Sep 2019 09:00:44 -0700 Subject: [PATCH] Fix inserting into middle of stack from flyout (#3058) --- core/keyboard_nav/navigation.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/keyboard_nav/navigation.js b/core/keyboard_nav/navigation.js index a300e68a1..16bffdc2c 100644 --- a/core/keyboard_nav/navigation.js +++ b/core/keyboard_nav/navigation.js @@ -492,17 +492,17 @@ Blockly.navigation.connect_ = function(movingConnection, destConnection) { Blockly.navigation.insertBlock = function(block, destConnection) { switch (destConnection.type) { case Blockly.PREVIOUS_STATEMENT: - if (Blockly.navigation.moveAndConnect_(block.nextConnection, destConnection)) { + if (Blockly.navigation.connect_(block.nextConnection, destConnection)) { return true; } break; case Blockly.NEXT_STATEMENT: - if (Blockly.navigation.moveAndConnect_(block.previousConnection, destConnection)) { + if (Blockly.navigation.connect_(block.previousConnection, destConnection)) { return true; } break; case Blockly.INPUT_VALUE: - if (Blockly.navigation.moveAndConnect_(block.outputConnection, destConnection)) { + if (Blockly.navigation.connect_(block.outputConnection, destConnection)) { return true; } break; @@ -510,7 +510,7 @@ Blockly.navigation.insertBlock = function(block, destConnection) { for (var i = 0; i < block.inputList.length; i++) { var inputConnection = block.inputList[i].connection; if (inputConnection.type === Blockly.INPUT_VALUE && - Blockly.navigation.moveAndConnect_(inputConnection, destConnection)) { + Blockly.navigation.connect_(inputConnection, destConnection)) { return true; } }