don't forward physical keyboard events to emulated machine when presenting another view controller
This commit is contained in:
parent
b2194bfcc5
commit
4e268e144d
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue