Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

key repeat set to off is still repeating #729

Open
sevdh opened this issue Aug 13, 2019 · 4 comments

Comments

@sevdh
Copy link

commented Aug 13, 2019

I know a lot of work has gone into key, keyup and keyname issues: #213
I'm on macos 10.14.16 with pd-0.50-0-test1 and I still have one issue. The 'Key Repeat' and 'Delay Until Repeat' from the system preferences are working well except for setting 'Key Repeat' to off. When set to off the pressed key still keeps on repeating.
Best!
Edwin

@sevdh

This comment has been minimized.

Copy link
Author

commented Aug 14, 2019

I'm sorry I was testing keyboard repeat more and it is macOS itself that still repeats when the slider in the system preferences is set to off(!)
Afterwards I tried to set ApplePressAndHoldEnabled to True for Pd with the following command in the terminal: 'defaults write org.puredata.pd.pd-gui ApplePressAndHoldEnabled -bool true'
This does change the setting temporarily but is without success since Pd is actively setting ApplePressAndHoldEnabled to false at startup.
'defaults read org.puredata.pd.pd-gui' gives this after launching Pd:
{
ApplePressAndHoldEnabled = 0;
NSNavLastRootDirectory = .....
........
}
I'm sure there is a good reason why it is set to false but nevertheless: how would Pd behave if ApplePressAndHoldEnabled is set to 1? Are there other things in the GUI that break or are not favorable?

@danomatika

This comment has been minimized.

Copy link
Contributor

commented Aug 15, 2019

how would Pd behave if ApplePressAndHoldEnabled is set to 1

Any accent keys would not repeat as the accent composer is launched, although you never see it.

You can disable setting the defaults key by commenting line 149 in pd_guiprefs.tcl inside your Pd app bundle:

  1. right-click on Pd .app and choose "Show contents" (or translation)
  2. file is in Contents/Resources/tcl, edit and save
  3. restart Pd
@danomatika

This comment has been minimized.

Copy link
Contributor

commented Aug 15, 2019

To note: I am not likely to fix this as I wasn't able to find a solution the last time. I figure having [keyup] and key repeat work at all was good enough.

@sevdh

This comment has been minimized.

Copy link
Author

commented Aug 16, 2019

Thanks! Yes, I can set ApplePressAndHoldEnabled to 1 now. However it doesn't seem to change anything in Pd's behavior (not even for the keys that should open the accent composer). All keys are still repeating.
I understand you can't (easily) fix this because it is actually macOS that doesn't properly switch off the key repeat although the system preferences indicate the possibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.