Move cursor on tab if we're in keyboard nav mode. (#3738)

This commit is contained in:
Sam El-Husseini
2020-03-12 09:42:19 -07:00
committed by GitHub
parent 21c7626c16
commit 5db1574852

View File

@@ -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);
}
}
};