-
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
consistent key-events #619
Conversation
i've tested this on linux and OSX; probably some Windows user (@Spacechild1 , @Lucarda ?) could test as well. my testing scheme is like this:
doing this for both the |
I did the tests only replacing the tcl folder of both PRs ( both tests gave the same results: |
that's perfect, thanks. (it shows that the patch didn't introduce a regression; since the Windows-version was fine in the first place, that's good enough) |
Is for my Spanish keyboard for the letter |
i'm not sure i understand.
|
Oh yes I get |
Looks good to me. Yet another one of those cross-platform inconsistencies, sigh. |
on linux, the
<KeyRelease>
event will not fill the%A
value, leading to all kinds of inconsistent behaviour.This PR tries to fix the problem, by using a cached value of
%A
value (e.g. received through<KeyPress>
) if necessary.The solution uses
dict
, which requires Tcl>8.5; older tcl-versions will fall back to the original behaviour (tested with Pd-0.49-0/OSX/PowerPC that uses Tcl-8.4 ).