Dear oliver, dear list,
Peter P. wrote:
Dear Dan and everyone contributing to this issue,
I kinda felt this is a sensitive topic but was not aware of the amount of frustrating work that has already gone into it. Every bit of it is much appreciated, thank you and everyone a lot!
So if I would want to write a patch that uses the [key] and [keyup] objects to work consistently on all three platforms, I would have to tell the user to turn key repeat off in her operating system AND provide a means to filter out repeating key ons (Win and OS X), correct?
In this case I happily deal with the current status.
Often key repetitions are desired, for example if i want to make a beautiful dividing line like this:
=======================================================================
Yes, this is without discussion and full of beauty. However for many Pd-related requirements it is not.
Maybe a safer approach would be to provide an abstraction that does the filtering depending on the OS.
I think there should be a vanilla way that works on all three OSes. Thanks for pointing to your abstraction, it looks very sophisticated. I have used the attached abstraction in the past to filter key repeats but it did not work reliably. It would occasionally let single repeated events pass through, and has to be tuned to the key repeat rate, as there is a wait time. Futhermore these abstraction get hella complicated if you depress multiple keys simultaneously.
cheersz, P