[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] X11 Event Handling: Keystroke events are not recognized for Numpad Enter Key (#556)

Christoph Thiede notifications at github.com
Wed Apr 7 21:42:23 UTC 2021


Setup: Win 2004 + WSL (Ubuntu) + VcXsrv

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 `HandMorph >> #showEvents:`, the keyUp and keyDown events look the same for both enter keys (character code 13).

I don't have a real Linux machine available at the moment. Can someone tell whether the issue also exists without VcXsrv?

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 [partially](https://sourceforge.net/p/vcxsrv/bugs/134/), 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.

---

In sqUnixX11.c, apparently EventKeyDown and EventKeyChar events are always generated together with one exception:

https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/7f69e44dd9cdf5d1fe2d838e824e86f7503abe93/platforms/unix/vm-display-X11/sqUnixX11.c#L3749

So either `x2sqKey()` or `xkeysym2ucs4()` must be responsible for the bug. However, I have never read these sources before, so probably, I'm completely on the wrong track ...
How can I enable `DEBUG_KEYBOARD_EVENTS`?

Looking forward to your help,
Christoph

-- 
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/556
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20210407/d3ef2fef/attachment.html>


More information about the Vm-dev mailing list