FLEXTool/FLEX

Keyboard shortcuts don't work when using UIKit for Mac (Project Catalyst)

Offen

#297 geöffnet am 28.07.2019

 (5 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Objective-C (1.777 Forks)batch import
help wanted

Repository-Metriken

Stars
 (14.597 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

I successfully added the f shortcut in my app by adding:

- (NSArray<UIKeyCommand *> *)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