Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试创建一个应用程序,并且我想删除所有基本的 mac 键绑定。例如,如果用户尝试执行命令+空格,那么我不想打开聚光灯。我该怎么做呢?Toolkit 有什么我缺少的东西吗?
谢谢你,霍华德史塔克
我知道在 OS X 上执行此操作的唯一方法——通常,不仅仅是在 Java 中——是通过设置来启用 kiosk 模式NSApplication.presentationOptions。不过,我不确定是否有任何方法可以在不深入研究 JNI 的情况下使用 Java 做到这一点。
NSApplication.presentationOptions
在首选项或聚光灯中搜索键盘快捷键并关闭不需要的快捷键