From 1671a250c32271db63a6f3c835a90c8e996f1062 Mon Sep 17 00:00:00 2001 From: Dennis Kehrig Date: Fri, 27 Jul 2012 15:03:49 +0200 Subject: [PATCH] Made GotoAgent focus the editor --- src/LiveDevelopment/Agents/GotoAgent.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/LiveDevelopment/Agents/GotoAgent.js b/src/LiveDevelopment/Agents/GotoAgent.js index 1a40553c87d..ca66ce4ec4e 100644 --- a/src/LiveDevelopment/Agents/GotoAgent.js +++ b/src/LiveDevelopment/Agents/GotoAgent.js @@ -142,6 +142,7 @@ define(function GotoAgent(require, exports, module) { codeMirror.setCursor(location); codeMirror.setLineClass(location.line, "flash"); window.setTimeout(codeMirror.setLineClass.bind(codeMirror, location.line), 1000); + editor.focus(); } /** Open the editor at the given url and editor location