mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 14:44:40 +02:00
* Experimental enter/leave events for Views
This commit is contained in:
parent
85a72935fa
commit
b0103cb178
5 changed files with 74 additions and 1 deletions
|
@ -140,6 +140,10 @@ ViewController.prototype.getView = function(id) {
|
|||
return this.views[id];
|
||||
};
|
||||
|
||||
ViewController.prototype.getFocusedView = function() {
|
||||
return this.focusedView;
|
||||
};
|
||||
|
||||
ViewController.prototype.switchFocus = function(id) {
|
||||
if(this.focusedView && this.focusedView.acceptsFocus) {
|
||||
this.focusedView.setFocus(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue