mirror of
https://github.com/google/blockly.git
synced 2026-01-09 10:00:09 +01:00
Revert not closing the flyout for a tree separator (#3944)
This commit is contained in:
@@ -442,11 +442,16 @@ Blockly.Toolbox.prototype.handleAfterTreeSelected_ = function(
|
||||
if (this.lastCategory_ != newNode) {
|
||||
this.flyout_.scrollToStart();
|
||||
}
|
||||
} else if (newNode instanceof Blockly.Toolbox.TreeSeparator){
|
||||
// Do nothing
|
||||
if (this.workspace_.keyboardAccessibilityMode) {
|
||||
Blockly.navigation.setState(Blockly.navigation.STATE_TOOLBOX);
|
||||
}
|
||||
} else {
|
||||
// Hide the flyout.
|
||||
this.flyout_.hide();
|
||||
if (this.workspace_.keyboardAccessibilityMode &&
|
||||
!(newNode instanceof Blockly.Toolbox.TreeSeparator)) {
|
||||
Blockly.navigation.setState(Blockly.navigation.STATE_WS);
|
||||
}
|
||||
}
|
||||
if (oldNode != newNode && oldNode != this) {
|
||||
var event = new Blockly.Events.Ui(null, 'category',
|
||||
|
||||
Reference in New Issue
Block a user