FLEXTool/FLEX

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

オープン

#297 opened on 2019/07/28

 (5 件のコメント) (0 件のリアクション) (0 人の担当者)Objective-C (1,777 件のフォーク)batch import
help wanted

Repository metrics

Stars
 (14,597 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

コントリビューターガイド