<p></p>
<p>Setup: Win 2004 + WSL (Ubuntu) + VcXsrv</p>
<p>When I press the right enter key (part of the numpad), only keyDown and keyUp events are recorded by the VM, but not any keystroke event. The left enter key, however, works fine, and so does the right enter key on Windows do. Using <code>HandMorph >> #showEvents:</code>, the keyUp and keyDown events look the same for both enter keys (character code 13).</p>
<p>I don't have a real Linux machine available at the moment. Can someone tell whether the issue also exists without VcXsrv?</p>
<p>In general, running Squeak works fine with this setup. However, some keys are not mapped correctly. First, I thought this would be a problem of VcXsrv (and <a href="https://sourceforge.net/p/vcxsrv/bugs/134/" rel="nofollow">partially</a>, this is also true), but then I recognized that gedit recognizes the right enter key correctly through VcXsrv, so this appears to be a problem of OSVM indeed.</p>
<hr>
<p>In sqUnixX11.c, apparently EventKeyDown and EventKeyChar events are always generated together with one exception:</p>
<p><a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/7f69e44dd9cdf5d1fe2d838e824e86f7503abe93/platforms/unix/vm-display-X11/sqUnixX11.c#L3749">https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/7f69e44dd9cdf5d1fe2d838e824e86f7503abe93/platforms/unix/vm-display-X11/sqUnixX11.c#L3749</a></p>
<p>So either <code>x2sqKey()</code> or <code>xkeysym2ucs4()</code> must be responsible for the bug. However, I have never read these sources before, so probably, I'm completely on the wrong track ...<br>
How can I enable <code>DEBUG_KEYBOARD_EVENTS</code>?</p>
<p>Looking forward to your help,<br>
Christoph</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/556">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AIJPEW6XLMDHDM4HYAXNMRDTHTGT7ANCNFSM42RS3EMA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AIJPEWYTGBMGPNL7HV3OSR3THTGT7A5CNFSM42RS3EMKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4MWVLFEA.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/556",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/556",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>