2

我对 Xcode 和 Mac 开发很陌生。我正在尝试使菜单项可以通过键盘快捷键激活(例如 CMD+S 是许多程序中保存的快捷键。)

我怎样才能做到这一点?

PS:我还希望这个快捷方式出现在菜单项中。我假设这是在编程中自动完成的,但如果不是,我也希望得到帮助。

4

1 回答 1

3

Just double-click on the keyboard shortcut in the .xib and type whatever key combination you want. Here's an example of an empty project that I changed the "save" key shortcut to CMD-F:

enter image description here

于 2013-07-29T22:29:04.847 回答