From 7fa39f645dfb9c47a5e4a7bde01fc82964e04434 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sun, 12 May 2013 16:06:55 +0100 Subject: [PATCH] Space shortcut to refocus on document Hit space when outside of document to refocus on it --- lib/help.php | 1 + lib/ice-coder.js | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/lib/help.php b/lib/help.php index 0810cea..f8800a4 100644 --- a/lib/help.php +++ b/lib/help.php @@ -60,6 +60,7 @@ CTRL + s Save
CTRL + Shift + s Save as...
CTRL + Enter View webpage
+ Space Refocus on document
Esc Cancel tasks
diff --git a/lib/ice-coder.js b/lib/ice-coder.js index 654f6ef..d07076f 100644 --- a/lib/ice-coder.js +++ b/lib/ice-coder.js @@ -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();