<p>Side comment 1 from <a href="http://forum.world.st/Windows-cog-vm-Keyboard-events-related-about-keycode-mapping-td4330359.html" rel="nofollow">http://forum.world.st/Windows-cog-vm-Keyboard-events-related-about-keycode-mapping-td4330359.html</a></p>
<blockquote>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=1457661" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jvuletich">@jvuletich</a>: On the mac, when control or command are pressed, for any keystroke the unshifted code is returned, even if shift is pressed.<br>
For instance, let's assume an US keyboard. So, [shift]+[,] generates $< and [shift]+[.] generates $>.<br>
If you run 'Sensor kbdTest' and press [shift]+[,] you correctly get $<,<br>
but if you press [control]+[shift]+[,] or [command]+[shift]+[,] you get $,.<br>
This is bad, because to detect [command]+[<] or [control]+[<] you need to write code that not only<br>
needs to know about the platform, but also about the keyboard layout, as<br>
in many layouts $< is not generated by doing [shift]+[,], but by some<br>
other combination. The same happens with most non-alphabetic keys, that<br>
usually differ in different keyboard layouts.</p>
</blockquote>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/396?email_source=notifications&email_token=AIJPEW4SKUNFFODFFD5DS3LP2EOTLA5CNFSM4HP46HZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXQ7JBI#issuecomment-501347461">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AIJPEW3ATSMI2PYOTCUQHS3P2EOTLANCNFSM4HP46HZA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AIJPEW4FFGEJOUQAD52XKKLP2EOTLA5CNFSM4HP46HZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXQ7JBI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/396?email_source=notifications\u0026email_token=AIJPEW4SKUNFFODFFD5DS3LP2EOTLA5CNFSM4HP46HZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXQ7JBI#issuecomment-501347461",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/396?email_source=notifications\u0026email_token=AIJPEW4SKUNFFODFFD5DS3LP2EOTLA5CNFSM4HP46HZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXQ7JBI#issuecomment-501347461",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>