diff --git a/plugins/c9.ide.keys/panel.js b/plugins/c9.ide.keys/panel.js index 631d3730..418449e0 100644 --- a/plugins/c9.ide.keys/panel.js +++ b/plugins/c9.ide.keys/panel.js @@ -142,7 +142,8 @@ define(function(require, exports, module) { var to = e.toElement; if (!to || apf.isChildOf(winCommands, to, true)) return; - + if (to.localName == "menu") + return; // TODO add better support for overlay panels setTimeout(function() { plugin.hide(); }, 10); } diff --git a/plugins/c9.ide.navigate/navigate.js b/plugins/c9.ide.navigate/navigate.js index 5ac7bf4b..efbec0cf 100644 --- a/plugins/c9.ide.navigate/navigate.js +++ b/plugins/c9.ide.navigate/navigate.js @@ -282,6 +282,8 @@ define(function(require, exports, module) { || lastPreviewed.aml == to))) { return; } + if (to.localName == "menu") + return; // TODO add better support for overlay panels setTimeout(function() { plugin.hide(); }, 10);