* Experimental enter/leave events for Views

This commit is contained in:
Bryan Ashby 2015-04-11 23:48:41 -06:00
parent 85a72935fa
commit b0103cb178
5 changed files with 74 additions and 1 deletions

View file

@ -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);