From 5db1574852e411f03449a32e55b805c69ff10ce6 Mon Sep 17 00:00:00 2001 From: Sam El-Husseini Date: Thu, 12 Mar 2020 09:42:19 -0700 Subject: [PATCH] Move cursor on tab if we're in keyboard nav mode. (#3738) --- core/block_svg.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/block_svg.js b/core/block_svg.js index e10507fe8..90fce83c5 100644 --- a/core/block_svg.js +++ b/core/block_svg.js @@ -676,6 +676,11 @@ Blockly.BlockSvg.prototype.tab = function(start, forward) { if (nextNode && nextNode !== currentNode) { var nextField = /** @type {!Blockly.Field} */ (nextNode.getLocation()); nextField.showEditor(); + + // Also move the cursor if we're in keyboard nav mode. + if (this.workspace.keyboardAccessibilityMode) { + this.workspace.getCursor().setCurNode(nextNode); + } } };