<p></p>
<blockquote>
<p>My issue is that we migh be introducing some new code here without having them mean anything anywhere elseā€¦</p>
</blockquote>
<p>Yes. It would be better if we had access to both the "keysym" and the "keycode" in the Smalltalk image. Unfortunately, there is only a single value reserved for this in our event structure. So, we have to merge both value ranges in a meaningful way. I just did that. You can restore the "keysym" in the image by setting 0xff__ again.</p>
<p>Do you have a better Idea on merging "keysym" (special keys and alpha-num latin-1) and "keycode" (for shifted alpha-num keys) into a single value? That single-byte lookup table in Squeak is quite handy ... and fast. :-) And what the other two platforms provide.</p>
<blockquote>
<p>Also, what does "virtual" mean here? are we trying to map to the thing printed on the keyborard or to the position of the key pressed?</p>
</blockquote>
<p>The concept stems from the MSDN documentation. I elaborated on this topic several times on squeak-dev already:</p>
<ul>
<li><a href="http://lists.squeakfoundation.org/pipermail/squeak-dev/2021-April/215203.html" rel="nofollow">http://lists.squeakfoundation.org/pipermail/squeak-dev/2021-April/215203.html</a></li>
<li><a href="http://lists.squeakfoundation.org/pipermail/squeak-dev/2021-April/215208.html" rel="nofollow">http://lists.squeakfoundation.org/pipermail/squeak-dev/2021-April/215208.html</a></li>
</ul>
<p>The code reads <code>xkey2sqVirtualKeyCode</code>, which clarifies its meaning within the Smalltalk image.</p>

<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/pull/599#issuecomment-934146042">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AIJPEW3IYH7XZ7LXFNKAVC3UFKTDRANCNFSM5FFF5FHQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AIJPEW365IGLPYQE553XTZ3UFKTDRA5CNFSM5FFF5FH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG6W676Q.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/pull/599#issuecomment-934146042",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/599#issuecomment-934146042",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>