fix(overlays): update keyboard focus management

This commit is contained in:
Adam Bradley
2016-03-05 20:32:21 -06:00
parent 4922fc6075
commit e639457654
5 changed files with 68 additions and 35 deletions

View File

@ -189,10 +189,26 @@ export class ViewController {
}
/**
* @returns {boolean} Returns if this Page is the root page of the NavController.
* @private
*/
isRoot(): boolean {
return (this.index === 0);
private isRoot(): boolean {
// deprecated warning
console.warn('ViewController isRoot() has been renamed to isFirst()');
return this.isFirst();
}
/**
* @returns {boolean} Returns if this Page is the first in the stack of pages within its NavController.
*/
isFirst(): boolean {
return (this._nav ? this._nav.first() === this : false);
}
/**
* @returns {boolean} Returns if this Page is the last in the stack of pages within its NavController.
*/
isLast(): boolean {
return (this._nav ? this._nav.last() === this : false);
}
/**