IOS7: Fix handling of arrow keys on iOS 15

This commit is contained in:
Thierry Crozat 2021-09-29 20:12:55 +01:00
parent 8f49df6aca
commit 68331af461

View File

@ -150,7 +150,7 @@
// In iOS 15 the UIKeyCommand has a new property wantsPriorityOverSystemBehavior that is needed to
// receive some keys (such as the arrow keys).
if ([keyCommand respondsToSelector:@selector(setWantsPriorityOverSystemBehavior:)]) {
[UIKeyCommand setValue:[NSNumber numberWithBool: YES] forKey:@"wantsPriorityOverSystemBehavior"];
[keyCommand setValue:[NSNumber numberWithBool:YES] forKey:@"wantsPriorityOverSystemBehavior"];
}
}