On startup, focus on editor

This commit is contained in:
Daniel Perrett 2016-10-21 08:47:24 +01:00
parent ed7ddfce4b
commit fc891c420b

View File

@ -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;