diff --git a/src/line_cursor.ts b/src/line_cursor.ts index 574751e..1325c22 100644 --- a/src/line_cursor.ts +++ b/src/line_cursor.ts @@ -44,14 +44,6 @@ export class LineCursor extends Marker { } let newNode = this.getNextNode(curNode, this.validLineNode); - // Skip the input (but not next) connection if there is a connected block. - if ( - newNode && - newNode.getType() === ASTNode.types.INPUT && - (newNode.getLocation() as Blockly.Connection).targetBlock() - ) { - newNode = this.getNextNode(newNode, this.validLineNode); - } if (newNode) { this.setCurNode(newNode); } @@ -91,15 +83,6 @@ export class LineCursor extends Marker { } let newNode = this.getPreviousNode(curNode, this.validLineNode); - // Skip the input (but not next) connection if there is a connected block. - if ( - newNode && - newNode.getType() == ASTNode.types.INPUT && - (newNode.getLocation() as Blockly.Connection).targetBlock() - ) { - newNode = this.getPreviousNode(newNode, this.validLineNode); - } - if (newNode) { this.setCurNode(newNode); }