[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Cross-platform differences for CTRL keys (#456)
notifications at github.com
Thu Dec 26 00:39:09 UTC 2019
Note: linux behavior is not strange, it is deliberate, see this:
It was introduced with https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/1b837f94e96b93cb4d117ccdd010825d76dcde57
If we want to fix it, we can just enclose this piece of code with `#ifdef PharoVM`, as it is already the case for similar code on windows:
Though, on windows, only the `utf32` field (`event at: 6`) is changed, while on linux `charCode` field (`event at: 3`) is also changed.
I do not see equivalent code on OSX...
However, I suggest deeper change, as in this branch:
We should have `charCode` transformed into a platform independent `keyCode`, hence not being an ASCII control character, but rather a letter in case of Ctrl+a. (X11 KeySym and windows Virtual Key codes already match ASCII for keys representing ASCII characters).
Then the utf32 can eventually be the ASCII control character or not, whatever we want, we have to decide...
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Vm-dev