mirror of
https://github.com/slap-editor/slap.git
synced 2024-09-11 12:58:30 +03:00
On startup, focus on editor
This commit is contained in:
parent
ed7ddfce4b
commit
fc891c420b
@ -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