![macos删除ssh密钥](https://img-blog.csdnimg.cn/img_convert/eee77793846f67a912aa290b08e95622.png)
macos删除ssh密钥
![](https://img-blog.csdnimg.cn/img_convert/f642afb8657105bb101580f7385e54a3.png)
As anyone who uses a Mac knows, entering special characters is really easy–you just hold down a letter. That’s great if you want to play Pokémon Go with your friends mañana, but not so much if you realllllllllllllllllly want to play now.
就像使用Mac的任何人都知道的那样, 输入特殊字符确实非常容易 –您只需按住一个字母即可。 如果您想和朋友玛娜娜一起玩PokémonGo,那就太好了,但是如果您现在想玩,那就不要了。
Normally, on macOS, when you hold down a key, it will display a popup allowing you pick a special character if there are any assigned to that particular key.
通常,在macOS上,当您按住某个键时,它将显示一个弹出窗口,允许您选择一个特殊字符(如果为该特定键分配了任何特殊字符)。
![](https://img-blog.csdnimg.cn/img_convert/9830399a99b2f4884bad1aabb378c6ea.png)
If a key doesn’t have any special characters behind it and you hold it down, nothing will happen.
如果键后面没有任何特殊字符,而您按住该键,则不会发生任何事情。
You can repeat some keys like space, backspace, and arrows, but that’s about it. So, how do you fix this?
您可以重复一些键,如空格键,退格键和箭头键,仅此而已。 那么,如何解决这个问题?
You can switch it back to the more old school behavior–where holding a key repeats it–but it’s somewhat inconvenient. You can’t really have both options, since the hoop you have to jump through kind of makes it a this-way-or-that-way type of deal.
您可以将其切换回较旧的行为-按住键会重复该行为-但这样做有些不便。 实际上,您不可能同时拥有这两种选择,因为您必须跳过障碍物,这使其成为一种单向或双向交易。
You have to use a command in the Terminal, which might seem easy enough except that in order to make it stick, you have to restart the computer. Want to change it back? Enter the command and restart again.
您必须在终端中使用一个命令,该命令看起来似乎很简单,但为了使其坚持下去,您必须重新启动计算机。 想要改回来吗? 输入命令,然后再次重新启动。
To do this, first open the Terminal from the Utilities > Applications folder.
为此,首先从实用程序>应用程序文件夹中打开终端。
![](https://img-blog.csdnimg.cn/img_convert/42dd3436f81a591aaa9a19ac1552f7c0.png)
With the Terminal open, now enter the following command and hit Return.
在终端打开的情况下,现在输入以下命令并单击Return。
defaults write -g ApplePressAndHoldEnabled -bool false
![](https://img-blog.csdnimg.cn/img_convert/b59490d892c81fe9301e531b7e9e39b2.png)
Next, restart your computer and you should now be able to repeat all characters.
接下来,重新启动计算机,您现在应该可以重复所有字符。
![](https://img-blog.csdnimg.cn/img_convert/ef9d070785ea002f8ca8fb53b3d272e6.png)
Before you continue though, you might want to make sure that you adjust the repeat speed to suit your preferences. To do this, first open the System Preferences and then click open “Keyboard”.
不过,在继续之前,您可能需要确保调整重复速度以适合您的偏好。 为此,首先打开系统偏好设置,然后单击打开“键盘”。
![](https://img-blog.csdnimg.cn/img_convert/2918013191af0a424ae1a7d1a2a1dcab.png)
The controls that apply are Key Repeat and Delay Until Repeat.
适用的控件是“ 键重复”和“ 延迟直到重复” 。
The first option will let you dictate how fast a key repeats. Note, if it is off, then keys won’t repeat at all.
第一个选项可让您决定按键重复的速度。 请注意,如果关闭,则按键完全不会重复。
The Delay Until Repeat option lets you decide how long it takes when you press and hold a key before it begins repeating.
“直到重复的延迟”选项使您可以确定在按住键之前要花多长时间才能开始重复。
![](https://img-blog.csdnimg.cn/img_convert/bc5b7328c24a39cac11ec69b13da21d3.png)
If you want to reenable special characters, then you will need to enter the command in the Terminal again, change the last part to “true” and then again restart your computer.
如果要重新启用特殊字符,则需要再次在终端中输入命令,将最后一部分更改为“ true”,然后再次重新启动计算机。
defaults write -g ApplePressAndHoldEnabled -bool true
Granted, this isn’t the most convenient way to go about switching between repeating and special characters. While you might not use one or the other often enough that this necessarily seems like a big problem, there are enough Mac users out there asking this very same question.
当然,这不是在重复字符和特殊字符之间切换的最便捷方法。 尽管您可能没有足够频繁地使用一个或另一个来解决这个问题,但这似乎是一个大问题,但是有足够多的Mac用户问同样的问题。
It would be far more convenient if Apple would simply add a checkbox to the keyboard preferences panel that lets you enable or disable special characters as needed.
如果Apple仅在键盘首选项面板中添加一个复选框,使您可以根据需要启用或禁用特殊字符,则将更加方便。
Unfortunately, judging by a cursory Google search, this is a problem people have been looking into since at least OS X Lion, so its apparently something Apple doesn’t think needs fixing.
不幸的是,从粗略的Google搜索来看,至少从OS X Lion开始,这就是人们一直在研究的问题,因此,Apple显然不需要修复此问题。
翻译自: https://www.howtogeek.com/267463/how-to-enable-key-repeating-in-macos/
macos删除ssh密钥