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

@@ -60,6 +60,7 @@
<span class="key">CTRL <span class="plus">+</span> s</span> <span class="shortcut">Save</span><br>
<span class="key">CTRL <span class="plus">+</span> Shift <span class="plus">+</span> s</span> <span class="shortcut">Save as...</span><br>
<span class="key">CTRL <span class="plus">+</span> Enter</span> <span class="shortcut">View webpage</span><br>
<span class="key">Space</span> <span class="shortcut">Refocus on document</span><br>
<span class="key">Esc</span> <span class="shortcut">Cancel tasks</span><br>
</div>

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();