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;