diff --git a/core/contextmenu.js b/core/contextmenu.js index 6a8505636..1ec302d05 100644 --- a/core/contextmenu.js +++ b/core/contextmenu.js @@ -66,6 +66,10 @@ Blockly.ContextMenu.show = function(e, options, rtl) { if (option.enabled) { goog.events.listen(menuItem, goog.ui.Component.EventType.ACTION, option.callback); + menuItem.handleContextMenu = function(e) { + // Right-clicking on menu option should count as a click. + goog.events.dispatchEvent(this, goog.ui.Component.EventType.ACTION); + }; } } goog.events.listen(menu, goog.ui.Component.EventType.ACTION,