mirror of
https://github.com/google/blockly.git
synced 2026-01-15 12:57:12 +01:00
Add ability to have custom menus in flyouts
This commit is contained in:
@@ -889,6 +889,10 @@ Blockly.BlockSvg.prototype.showContextMenu_ = function(e) {
|
||||
this.customContextMenu(menuOptions);
|
||||
}
|
||||
|
||||
if (this.flyoutCustomContextMenu && block.isInFlyout) {
|
||||
this.flyoutCustomContextMenu(menuOptions);
|
||||
}
|
||||
|
||||
Blockly.ContextMenu.show(e, menuOptions, this.RTL);
|
||||
Blockly.ContextMenu.currentBlock = this;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user