mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 07:13:59 +01:00
Space shortcut to refocus on document
Hit space when outside of document to refocus on it
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user