Bug 964534 - Move cursor to new dialog if focus does not change the cursor first. r=yzen

This commit is contained in:
Eitan Isaacson 2014-01-29 15:08:53 -08:00
parent aef17f6e97
commit e469eb5a7a

View File

@ -274,11 +274,20 @@ this.EventManager.prototype = {
let acc = aEvent.accessible;
let doc = aEvent.accessibleDocument;
if (acc.role != Roles.DOCUMENT && doc.role != Roles.CHROME_WINDOW) {
this.contentScope.content.clearTimeout(this._autoMove);
let vc = Utils.getVirtualCursor(doc);
vc.moveNext(TraversalRules.Simple, acc, true);
}
break;
}
case Events.DOCUMENT_LOAD_COMPLETE:
{
this._autoMove = this.contentScope.content.setTimeout(() => {
Utils.getVirtualCursor(aEvent.accessibleDocument)
.moveNext(TraversalRules.Simple, aEvent.accessible, true);
}, 500);
break;
}
}
},