From 4d397d9c94bb795090d648639749c6df1a087d4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesu=CC=81s=20A=2E=20A=CC=81lvarez?= Date: Fri, 3 Apr 2020 12:35:55 +0200 Subject: [PATCH] fix crash when pressing dead keys on physical keyboard --- Mini vMac/MNVMApplication.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mini vMac/MNVMApplication.m b/Mini vMac/MNVMApplication.m index c54ced1..1061a02 100644 --- a/Mini vMac/MNVMApplication.m +++ b/Mini vMac/MNVMApplication.m @@ -82,7 +82,7 @@ static int8_t usb_to_adb_scancode[] = { } - (void)_updateCapsLockStatus:(UIPhysicalKeyboardEvent *)event { - if (event._modifierFlags == 0 && event._unmodifiedInput.length == 1) { + if (event._modifierFlags == 0 && event._unmodifiedInput.length == 1 && event._modifiedInput.length == 1) { unichar unmodifiedChar = [event._unmodifiedInput characterAtIndex:0]; unichar modifiedChar = [event._modifiedInput characterAtIndex:0]; if ([[NSCharacterSet lowercaseLetterCharacterSet] characterIsMember:unmodifiedChar]) {