diff --git a/Mini vMac/MNVMApplication.m b/Mini vMac/MNVMApplication.m index 82756d3..0c9d2c6 100644 --- a/Mini vMac/MNVMApplication.m +++ b/Mini vMac/MNVMApplication.m @@ -110,7 +110,8 @@ static int8_t usb_to_adb_scancode[] = { handleKeyboardEvents = NO; } }); - if ([event isKindOfClass:keyboardEventClass] && handleKeyboardEvents) { + BOOL emulatorIsFrontmost = [AppDelegate sharedEmulator].running && [AppDelegate sharedInstance].window.rootViewController.presentedViewController == nil; + if ([event isKindOfClass:keyboardEventClass] && handleKeyboardEvents && emulatorIsFrontmost) { [self handleKeyboardEvent:(UIPhysicalKeyboardEvent*)event]; } }