Slightly taller help and 2 new shortcuts added

To lock/unlock file manager and fold/unfold current line
This commit is contained in:
Matt Pass
2014-02-18 08:33:22 +00:00
parent 3d8bd14774
commit 62ec680dc0

View File

@@ -1764,7 +1764,7 @@ var ICEcoder = {
// Show the help screen
helpScreen: function() {
top.get('mediaContainer').innerHTML = '<iframe src="lib/help.php" class="whiteGlow" style="width: 800px; height: 450px"></iframe>';
top.get('mediaContainer').innerHTML = '<iframe src="lib/help.php" class="whiteGlow" style="width: 800px; height: 470px"></iframe>';
top.ICEcoder.showHide('show',top.get('blackMask'));
},
@@ -2512,6 +2512,19 @@ var ICEcoder = {
top.ICEcoder.jumpToDefinition();
return false;
// CTRL + Tab (lock/unlock file manager)
} else if(key==223 && (evt.ctrlKey||top.ICEcoder.cmdKey)) {
top.ICEcoder.lockUnlockNav();
ICEcoder.changeFilesW(top.ICEcoder.lockedNav ? 'expand' : 'contract');
return false;
// CTRL + . (Fold/unfold current line)
} else if(key==190 && (evt.ctrlKey||top.ICEcoder.cmdKey)) {
var cM = ICEcoder.getcMInstance();
var line = cM.getCursor().line;
cM.getLine(line).indexOf("{")>-1
? top.contentFrame.codeFoldBrace(cM, line) : top.contentFrame.codeFoldTag(cM, line);
// ESC in content area (Comment/Uncomment line)
} else if(key==27 && area == "content") {
top.ICEcoder.lineCommentToggle();