mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-05 12:17:17 +02:00
* VC.setFocus(): Attaches/detaches events/etc.
This commit is contained in:
parent
f348e06d86
commit
65ad2ffdd1
3 changed files with 13 additions and 15 deletions
|
@ -199,7 +199,7 @@ function FullScreenEditorModule(options) {
|
|||
self.updateTextEditMode(bodyView.getTextEditMode());
|
||||
self.updateEditModePosition(bodyView.getEditPosition());
|
||||
|
||||
self.viewControllers.body.removeFocus(); // :TODO: Change vc to allow *not* setting focus @ create
|
||||
self.viewControllers.body.setFocus(false);
|
||||
self.viewControllers.header.switchFocus(1);
|
||||
}
|
||||
);
|
||||
|
@ -234,7 +234,7 @@ function FullScreenEditorModule(options) {
|
|||
|
||||
this.menuMethods = {
|
||||
headerSubmit : function(formData, extraArgs) {
|
||||
self.viewControllers.header.removeFocus();
|
||||
self.viewControllers.header.setFocus(false);
|
||||
self.viewControllers.body.switchFocus(1);
|
||||
|
||||
self.getBodyView().on('edit position', function cursorPosUpdate(pos) {
|
||||
|
@ -253,7 +253,7 @@ function FullScreenEditorModule(options) {
|
|||
// :TODO:... what now?
|
||||
console.log(err)
|
||||
} else {
|
||||
self.viewControllers.body.removeFocus();
|
||||
self.viewControllers.body.setFocus(false);
|
||||
self.viewControllers.footerEditMenu.switchFocus(1);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue