[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Linux Squeak VM X11 keyboard changes breaks 32b VM (#396)

Ben Coman notifications at github.com
Wed Jun 12 16:17:57 UTC 2019


Side comment 1 from http://forum.world.st/Windows-cog-vm-Keyboard-events-related-about-keycode-mapping-td4330359.html

> @jvuletich: On the mac, when control or command are pressed, for any keystroke the unshifted code is returned, even if shift is pressed. 
For instance, let's assume an US keyboard. So, [shift]+[,] generates $< and [shift]+[.] generates $>. 
If you run 'Sensor kbdTest' and press [shift]+[,] you correctly get $<, 
but if you press [control]+[shift]+[,] or [command]+[shift]+[,] you get $,. 
This is bad, because to detect [command]+[<] or [control]+[<] you need to write code that not only 
needs to know about the platform, but also about the keyboard layout, as 
in many layouts $< is not generated by doing [shift]+[,], but by some 
other combination. The same happens with most non-alphabetic keys, that 
usually differ in different keyboard layouts.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/396#issuecomment-501347461
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20190612/5c59cb6e/attachment.html>


More information about the Vm-dev mailing list