Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Enabling key-repeating doesn't work for cursor

Open matsjfunke opened this issue 1 year ago • 3 comments

if tried:

defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false              # For VS Code
defaults write com.microsoft.VSCodeInsiders ApplePressAndHoldEnabled -bool false      # For VS Code Insider
defaults write com.vscodium ApplePressAndHoldEnabled -bool false                      # For VS Codium
defaults write com.microsoft.VSCodeExploration ApplePressAndHoldEnabled -bool false   # For VS Codium Exploration users
defaults delete -g ApplePressAndHoldEnabled                                           # If necessary, reset global default

and even cursor specifc:

mdls -name kMDItemCFBundleIdentifier /Applications/Cursor.app 
              kMDItemCFBundleIdentifier = "com.todesktop.230313mzl4w4u92"
defaults write com.todesktop.230313mzl4w4u92 ApplePressAndHoldEnabled -bool false
defaults delete -g ApplePressAndHoldEnabled

but i'm still not able to navigate by holding keys down... , i'm probably doing something wrong as i'm new to VS-code / Cursor

matsjfunke avatar Feb 28 '25 08:02 matsjfunke

@matsjfunke Did you close and restart Cursor?

I did exctly what you did, restarted cursor (closed all windows), and I now have key-repeating working in cursor.

FrankCoder avatar Apr 01 '25 09:04 FrankCoder

@FrankCoder yes i did

matsjfunke avatar Apr 08 '25 23:04 matsjfunke

In my case defaults write com.todesktop.230313mzl4w4u92 ApplePressAndHoldEnbabled -bool false didn't work (I got the id using osascript -e 'id of app "Cursor"'.

What worked was defaults write -app Cursor ApplePressAndHoldEnabled -bool false and seems to have precedence over the former setting.

Cursor Version: 0.50.4 VSCode Version: 1.96.2

ykka avatar May 17 '25 11:05 ykka