Space shortcut to refocus on document

Hit space when outside of document to refocus on it
This commit is contained in:
Matt Pass
2013-05-12 16:06:55 +01:00
parent 535677fc8e
commit 7fa39f645d
2 changed files with 6 additions and 0 deletions

View File

@@ -2160,6 +2160,11 @@ var ICEcoder = {
top.ICEcoder.addSnippet();
return false;
// Space outisde of editor (Focus on editor)
} else if(key==32 && area!="content") {
top.ICEcoder.getcMInstance().focus();
return false;
// CTRL+J (Jump to definition)
} else if(key==74 && evt.ctrlKey && area=="content") {
top.ICEcoder.jumpToDefinition();