Merge pull request #358 from pdl/pr-focus-editor

On startup, focus on editor
This commit is contained in:
Dan Kaplun 2016-10-25 18:08:26 -07:00 committed by GitHub
commit 61bf6bb11f

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;