LoginSignup
0

More than 5 years have passed since last update.

Setting How Quickly a Key Repeats on Mac OS X

Posted at

Mac OS X の場合、キーを押しっぱなしにした時の繰り返し入力速度、特にカーソル移動が遅く感じていました。Mac OS X ではこのようなものだと思い込んでいましたが、キーボード設定から調整可能であることがわかりました。

System Preference > Keyboard (システム環境設定 > キーボード) で設定できます。

  • Key Repeat: 長押しした場合の繰り返し速度
  • Delay Until Repeat: 繰り返し入力を開始するまでの時間

Using the defaults Command

Key Repeat は最速にするとやや早すぎると感じるかもしれません。とはいえ、スライダーの目盛りを一段さげるとデフォルト値となってしまいます。

最速にして defaults コマンドで設定値を確認すると、以下のようになります。

# KeyRepeat
$ defaults read -g KeyRepeat
2

# Delay Until Repeat
$ defaults read -g InitialKeyRepeat
15

デフォルト値に戻して defaults コマンドで設定値を確認すると、以下のようになります。

# KeyRepeat
$ defaults read -g KeyRepeat
6

# Delay Until Repeat
$ defaults read -g InitialKeyRepeat
35

目盛りの中間値が欲しい場合は defaults write でユーザ設定値を設定します。

# KeyRepeat
$ defaults write -g KeyRepeat -int 3
$ defaults read -g KeyRepeat
3

# Delay Until Repeat
$ defaults write -g InitialKeyRepeat -int 15
$ defaults read -g InitialKeyRepeat
15

いったんログアウトして、ログインしなおすと設定値が反映されます。

当然ながら、キーボード設定のスライダーで設定しなおすと、目盛りに割り当てられた値に戻りますので、注意してください。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0