-
Notifications
You must be signed in to change notification settings - Fork 238
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
refactored sendkeys to properly handle dead keys #736
Conversation
Dead keys are working now. When you press them twice it appears two of them (which is what actually happen throghout windows so it seems correct) It is a bit annoying though having to type In the case of not coding this ad_hoc solution for |
but that's simply not true for the majority of users. we could add a release note telling people that dead-keys are finally fixed, and if they need to type them, they should type them as in any other application :-) otoh, who ever reads release-notes? |
I had already put on a band-aid here: 65d1dcb |
I may be missing something but can't we check if we received a But it is just a Quality-of-life suggestion anyway.
I do 🤓. Some people don't but it was an idea for a "courtesy" of letting at least the ones who read them know. Btw do we have testers with spanish/french/etc keyboards? I figure their keyboard works in a similar fashion but i've never actually used them. |
Tilde " |
ouch... maybe we can add a possibility for people to set their own shortcut for the tilde symbol? I know there are ways to do this system wide, but it's not straightforward (at least on Windows) |
Can you try msp.ucsd.edu/tmp/pd-tmp.msw.zip ? It should work on Portuguese (and I think Spanish) |
Didn't work for me with the "Spanish" layout (Alt Gr + 4 , space). With the "Spanish Latin American" variant is a no-go across all apps. It only works for me with this PR by @umlaeute and the "Spanish" layout (Alt Gr + 4 + space). |
OK, I just loaded up the Spanish (espana) layout and can confirm I can't type a tilde. #$&^%ing hell... will look at what tcl/tk is seeing and see if I can work around it |
(I don't really think alt-gr-4 + space is intuitive :) |
Yes but it had always been like that (there is no regression for people with the Spanish layout). |
I did some Windows10 tests with Spanish keyboard layouts, running in a VM (which runs on a Debian machine, that has a German keyboard (and according keyboard layout) attached to it): This is what i get in notepad++ (so i assume all "proper" applications behave like this):
Testing with Pd I get:
I did not test 65d1dcb. Note: I've also tested AltGr++ using the Spanish (US) layout on a real Windows10 machine (not VM). Nevertheless the keyboard hardware used was still a German keyboard, which has 105 keys. |
dropping miller's hack to make Pd work on Portuguese keyboards (65d1dcb)
@umlaeute I can confirm all your test on a Win8.1 real machine. (my previous tests were wrong because I was using a Spanish variation instead of Latin American (this appear as an option once adding the spanish language.) I can confirm 65d1dcb is not working (alt gr + 4 , space) in the Spanish layout (in this layout is a dead-key) |
@Lucarda so does this mean that you have now found a way to type |
@millerpuckette since the problem affects portuguese, spanish and french (these i have confirmed) and probably others (which i have not confirmed), i don't think that the trivial hack in 65d1dcb suffices to fix the problem. i'd suggest to either use "this nice complicated rewrite" or switch back to the switching back to the original implementation will of course revert to the old inconsistent behaviour between KeyPress and KeyRelease messages (which is what the new |
|
OK... I pulled my workaround and merged this. If it doesn't seem to be broken it will be time to put out 0.50-1 soon :) |
attempt on fixing the issue with not being able to type
~
character on portuguese/brazil keyboard layouts.this still requires testing!
Closes: #732