From fc891c420b77ab36a4734ed7275c4fdff99a5353 Mon Sep 17 00:00:00 2001 From: Daniel Perrett Date: Fri, 21 Oct 2016 08:47:24 +0100 Subject: [PATCH] On startup, focus on editor --- lib/ui/EditorPane.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/ui/EditorPane.js b/lib/ui/EditorPane.js index 890431e..a6f9a09 100644 --- a/lib/ui/EditorPane.js +++ b/lib/ui/EditorPane.js @@ -31,6 +31,12 @@ function EditorPane (opts) { self.saveAsForm = new SaveAsForm({parent: self}); self.saveAsCloseForm = new SaveAsCloseForm({parent: self}); } +EditorPane.prototype.setCurrent = function () { + var self = this; + Pane.prototype.setCurrent.apply(self, arguments); + self.editor.focus(); + return self; +}; EditorPane.prototype.getTitle = function () { var self = this;