mirror of
https://github.com/google/blockly.git
synced 2026-01-10 10:27:08 +01:00
Fix bug with tabbing out of Blockly (#3470)
* Pipe handled cursor action correctly.
This commit is contained in:
@@ -646,13 +646,14 @@ Blockly.BlockSvg.prototype.setCollapsed = function(collapsed) {
|
||||
Blockly.BlockSvg.prototype.tab = function(start, forward) {
|
||||
var tabCursor = new Blockly.TabNavigateCursor();
|
||||
tabCursor.setCurNode(Blockly.ASTNode.createFieldNode(start));
|
||||
var currentNode = tabCursor.getCurNode();
|
||||
var action = forward ?
|
||||
Blockly.navigation.ACTION_NEXT : Blockly.navigation.ACTION_PREVIOUS;
|
||||
|
||||
tabCursor.onBlocklyAction(action);
|
||||
|
||||
var nextNode = tabCursor.getCurNode();
|
||||
if (nextNode) {
|
||||
if (nextNode && nextNode !== currentNode) {
|
||||
var nextField = /** @type {!Blockly.Field} */ (nextNode.getLocation());
|
||||
nextField.showEditor();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user