Keyboard shortcuts don't work when using UIKit for Mac (Project Catalyst)
Open
help wanted
- Dominant language
- Objective-C
- Stars
- 14.6k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
Description
I successfully added the f shortcut in my app by adding:
```objc
- (NSArray *)keyCommands {
UIKeyCommand *flexToggleCommand = [UIKeyCommand keyCommandWithInput:@"f" modifierFlags:kNilOptions action:@selector(onFLEXToggleCommandTrigger)];
return @[flexToggleCommand];
}
- (void)onFLEXToggleCommandTrigger {
[[FLEXManager sharedManager] toggleExplorer];
}
```
in `AppDelegate.m`, but I don't know how to add all of them directly in FLEX, hence I created an issue instead of a PR.
Contributor guide
Assessment
This issue has not been assessed yet.