Re-enable PREFTECH, fix IP limit checking, and restore support for autoMount overrides

This commit is contained in:
Jeff Parsons 2016-03-09 09:47:17 -08:00
commit 81c4b61522
10 changed files with 2648 additions and 2644 deletions

View file

@ -529,9 +529,15 @@ CPU.prototype.setFocus = function()
* into view. The CPU is not a visual component, so when the CPU wants to set focus, the primary intent
* is to ensure that keyboard input is fielded properly.
*/
var x = window.scrollX, y = window.scrollY;
var x = 0, y = 0;
if (window) {
x = window.scrollX;
y = window.scrollY;
}
this.aVideo[0].setFocus();
window.scrollTo(x, y);
if (window) {
window.scrollTo(x, y);
}
}
};