diff --git a/package.json b/package.json index 8ec4634b..1e1dea62 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "c9.ide.navigate": "#f358997d93", "c9.ide.newresource": "#f1f0624768", "c9.ide.openfiles": "#28a4f5af16", - "c9.ide.preview": "#d10e9d75e1", + "c9.ide.preview": "#a75e218d3e", "c9.ide.preview.browser": "#c50007ebbc", "c9.ide.preview.markdown": "#ab8d30ad9f", "c9.ide.pubsub": "#a85fb27eca", @@ -111,6 +111,6 @@ "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", "c9.ide.upload": "#0bd010d3dc", - "c9.ide.welcome": "#c370b3f191" + "c9.ide.welcome": "#0cb72cfc56" } } \ No newline at end of file diff --git a/plugins/c9.ide.keys/commands.js b/plugins/c9.ide.keys/commands.js index 2260f181..90f73771 100644 --- a/plugins/c9.ide.keys/commands.js +++ b/plugins/c9.ide.keys/commands.js @@ -104,6 +104,8 @@ define(function(require, exports, module) { }, 500); function exec(command, editor, args, e) { + var sCommand = command; + if (!editor || editor.fake) editor = emit("getEditor"); @@ -119,8 +121,10 @@ define(function(require, exports, module) { if (typeof command === 'string') command = commands[command]; - if (!command) + if (!command) { + console.warn("Could not find command ", sCommand); return false; + } if (command.isAvailable && !command.isAvailable(editor, args, e)) return; //Disable commands for other contexts