首页 > 编程知识 正文

cmd命令停止快捷键_如何在OS X中更改Cmd + Q快捷键(以停止意外关闭应用程序)...

时间:2023-05-05 13:48:05 阅读:223750 作者:3447

cmd命令停止快捷键

If you’ve spent any time using Mac OS X, you’ve figured out that the Cmd+W shortcut key closes a window or tab, while the Cmd+Q key quits the entire app. The problem? The keys are right next to each other, and way too easy to accidentally hit! Here’s how to change it.

如果您花了很多时间使用Mac OS X,您会发现Cmd + W快捷键关闭了一个窗口或选项卡,而Cmd + Q则退出了整个应用程序。 问题? 按键彼此相邻,而且容易被意外击中! 更改方法如下。

This problem is compounded even more when you’re using an application like Google Chrome, Safari, or Firefox, where you’re opening or closing tabs all the time, and probably using the Cmd+W key to close just the current tab. If you aren’t careful, you’ll accidentally hit Cmd+Q instead, and your entire browser gets closed.

当您使用诸如Google Chrome,Safari或Firefox之类的应用程序时,这个问题甚至更加复杂,您一直在其中打开或关闭标签页,并且可能使用Cmd + W键仅关闭当前标签页。 如果不小心,您会不小心碰到Cmd + Q,整个浏览器都会关闭。

重新映射Cmd + Q(或任意)快捷键 (Remapping the Cmd+Q (Or Any) Shortcut Key)

Open up the System Preferences window, and then head down into Keyboard.

打开“系统偏好设置”窗口,然后向下进入“键盘”。

Now switch to the Keyboard Shortcuts tab, and then click the little plus symbol at the bottom of the window.

现在切换到“键盘快捷方式”选项卡,然后单击窗口底部的小加号。

Select the application you’re going to remap the key for, type in the Exact title of the menu item into the Menu Title box, and then customize the keyboard shortcut to something that you’d like it to be.

选择您要为其重新映射键的应用程序,在“菜单标题”框中键入菜单项的“确切”标题,然后将键盘快捷方式自定义为您想要的快捷方式。

Once you click the Add button, the change will be immediate—head back to the other application and look at the menu, where you’ll see the new key is in effect.

单击“添加”按钮后,更改将立即生效-返回另一个应用程序并查看菜单,您将在其中看到新密钥生效。

Unfortunately, you’ll need to customize this for each application separately, but at least it’s not that hard. In my case, there was really only one or two applications to bother with.

不幸的是,您需要为每个应用程序分别自定义此功能,但是至少它并不那么困难。 以我为例,实际上只有一个或两个应用程序要打扰。

翻译自: https://www.howtogeek.com/howto/39520/how-to-change-the-cmdq-shortcut-key-in-os-x-to-stop-accidentally-closing-apps/

cmd命令停止快捷键

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。