From 2e827ea62808784e4ec4ddb411fdfafd9bf258b8 Mon Sep 17 00:00:00 2001 From: Jeff Parsons Date: Mon, 28 Mar 2016 11:27:00 -0700 Subject: [PATCH] Since you usually want the machine to have focus again after loading a new diskette, let's try automatically setting focus after a successful load --- modules/pcjs/lib/fdc.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/pcjs/lib/fdc.js b/modules/pcjs/lib/fdc.js index 3406e5b37..e6ec0b508 100644 --- a/modules/pcjs/lib/fdc.js +++ b/modules/pcjs/lib/fdc.js @@ -1437,6 +1437,8 @@ FDC.prototype.doneLoadDiskette = function onFDCLoadNotify(drive, disk, sDiskette drive.nDiskCylinders = aDiskInfo[0]; drive.nDiskHeads = aDiskInfo[1]; drive.nDiskSectors = aDiskInfo[2]; + + if (this.cpu) this.cpu.setFocus(); } else { drive.fLocal = false;