<p>Note: linux behavior is not strange, it is deliberate, see this:<br>
<a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/a4a08f98c17b23ad54b5e361ffc0280e2ea8e0c3/platforms/unix/vm-display-X11/sqUnixX11.c#L2065">https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/a4a08f98c17b23ad54b5e361ffc0280e2ea8e0c3/platforms/unix/vm-display-X11/sqUnixX11.c#L2065</a></p>
<p>It was introduced with <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/1b837f94e96b93cb4d117ccdd010825d76dcde57/hovercard" href="https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/1b837f94e96b93cb4d117ccdd010825d76dcde57"><tt>1b837f9</tt></a></p>
<p>If we want to fix it, we can just enclose this piece of code with <code>#ifdef PharoVM</code>, as it is already the case for similar code on windows:<br>
<a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/a4a08f98c17b23ad54b5e361ffc0280e2ea8e0c3/platforms/win32/vm/sqWin32Window.c#L1308">https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/a4a08f98c17b23ad54b5e361ffc0280e2ea8e0c3/platforms/win32/vm/sqWin32Window.c#L1308</a></p>
<p>Though, on windows, only the <code>utf32</code> field (<code>event at: 6</code>) is changed, while on linux <code>charCode</code> field (<code>event at: 3</code>) is also changed.</p>
<p>I do not see equivalent code on OSX...</p>
<p>However, I suggest deeper change, as in this branch:<br>
<a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/tree/Nuke-MacRoman">https://github.com/OpenSmalltalk/opensmalltalk-vm/tree/Nuke-MacRoman</a></p>
<p>We should have <code>charCode</code> transformed into a platform independent <code>keyCode</code>, 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).</p>
<p>Then the utf32 can eventually be the ASCII control character or not, whatever we want, we have to decide...</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/issues/456?email_source=notifications&email_token=AIJPEWYO2MLQDAKH5PIT72DQ2P4K3A5CNFSM4J3Y2YXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHUVWJQ#issuecomment-568941350">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AIJPEW2VFLQQMEGOTG6F3ALQ2P4K3ANCNFSM4J3Y2YXA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AIJPEW2JSAFUPTRN4KMAL63Q2P4K3A5CNFSM4J3Y2YXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHUVWJQ.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/456?email_source=notifications\u0026email_token=AIJPEWYO2MLQDAKH5PIT72DQ2P4K3A5CNFSM4J3Y2YXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHUVWJQ#issuecomment-568941350",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/456?email_source=notifications\u0026email_token=AIJPEWYO2MLQDAKH5PIT72DQ2P4K3A5CNFSM4J3Y2YXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHUVWJQ#issuecomment-568941350",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>