From 4f47e717e688c500235d8c52db002c437f070f92 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Thu, 30 Oct 2014 11:42:19 +0000 Subject: [PATCH] On load don't focus on editor pane Want to retain focus on file manager incase we are using shortcuts to open files etc --- lib/file-control.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/file-control.php b/lib/file-control.php index 145cde4..6b6e86a 100644 --- a/lib/file-control.php +++ b/lib/file-control.php @@ -492,8 +492,7 @@ if (action=="load") { cM.setValue(document.getElementById('loadedFile').value); top.ICEcoder.savedPoints[top.ICEcoder.selectedTab-1] = cM.changeGeneration(); top.document.getElementById('content').style.visibility='visible'; - top.ICEcoder.switchTab(top.ICEcoder.selectedTab); - top.ICEcoder.focus(); + top.ICEcoder.switchTab(top.ICEcoder.selectedTab,'noFocus'); // Then clean it up, set the text cursor, update the display and get the character data top.ICEcoder.contentCleanUp();