diff --git a/lib/ice-coder.js b/lib/ice-coder.js index 9d37b95..db7bccf 100644 --- a/lib/ice-coder.js +++ b/lib/ice-coder.js @@ -1625,7 +1625,7 @@ var ICEcoder = { // Show the help screen helpScreen: function() { - top.get('mediaContainer').innerHTML = ''; + top.get('mediaContainer').innerHTML = ''; top.ICEcoder.showHide('show',top.get('blackMask')); }, @@ -2281,8 +2281,10 @@ var ICEcoder = { return false; // Space outisde of editor (Focus on editor) - } else if(key==32 && area!="content") { - top.ICEcoder.getcMInstance().focus(); + } else if(key==32 && area!="content" && document.activeElement.id!="find") { + if (top.ICEcoder.getcMInstance()) { + top.ICEcoder.getcMInstance().focus(); + } return false; // CTRL+J (Jump to definition)