mirror of
https://github.com/slap-editor/slap.git
synced 2024-09-11 12:58:30 +03:00
Merge pull request #358 from pdl/pr-focus-editor
On startup, focus on editor
This commit is contained in:
commit
61bf6bb11f
@ -31,6 +31,12 @@ function EditorPane (opts) {
|
|||||||
self.saveAsForm = new SaveAsForm({parent: self});
|
self.saveAsForm = new SaveAsForm({parent: self});
|
||||||
self.saveAsCloseForm = new SaveAsCloseForm({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 () {
|
EditorPane.prototype.getTitle = function () {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
Loading…
Reference in New Issue
Block a user