mirror of
https://github.com/google/blockly.git
synced 2026-01-18 22:37:09 +01:00
Move cursor on tab if we're in keyboard nav mode. (#3738)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user