Help screen 50px less, only focus if not in find

Also only focus if we have an open file
This commit is contained in:
Matt Pass
2013-07-07 15:42:36 +01:00
parent fd8b77a9df
commit c2ce4bed8f

View File

@@ -1625,7 +1625,7 @@ var ICEcoder = {
// Show the help screen
helpScreen: function() {
top.get('mediaContainer').innerHTML = '<iframe src="lib/help.php" class="whiteGlow" style="width: 800px; height: 490px"></iframe>';
top.get('mediaContainer').innerHTML = '<iframe src="lib/help.php" class="whiteGlow" style="width: 800px; height: 440px"></iframe>';
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)