From c2ce4bed8fe19c2daffa70321143a7ec412cb193 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sun, 7 Jul 2013 15:42:36 +0100 Subject: [PATCH] Help screen 50px less, only focus if not in find Also only focus if we have an open file --- lib/ice-coder.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/ice-coder.js b/lib/ice-coder.js index 9d37b95..db7bccf 100644 --- a/lib/ice-coder.js +++ b/lib/ice-coder.js @@ -1625,7 +1625,7 @@ var ICEcoder = { // Show the help screen helpScreen: function() { - top.get('mediaContainer').innerHTML = ''; + top.get('mediaContainer').innerHTML = ''; top.ICEcoder.showHide('show',top.get('blackMask')); }, @@ -2281,8 +2281,10 @@ var ICEcoder = { return false; // Space outisde of editor (Focus on editor) - } else if(key==32 && area!="content") { - top.ICEcoder.getcMInstance().focus(); + } else if(key==32 && area!="content" && document.activeElement.id!="find") { + if (top.ICEcoder.getcMInstance()) { + top.ICEcoder.getcMInstance().focus(); + } return false; // CTRL+J (Jump to definition)