FLEXTool/FLEX

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

开放

#297 创建于 2019年7月28日

 (5 条评论) (0 个反应) (0 位负责人)Objective-C (1,777 个派生)batch import
help wanted

仓库指标

星标
 (14,597 个星标)
PR 合并指标
 (30 天内没有已合并 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.

贡献者指南