[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Linux Squeak VM X11 keyboard changes breaks 32b VM (#396)

John Brant notifications at github.com
Wed Jun 12 17:23:09 UTC 2019


The change was made for this reason: 
```The other VM issue was that A-Z keys being pressed when the control was pressed was being reported as character code 1-26 instead of the letters a-z. On the other platforms, they are reported as letters with the control key pressed. On Linux, they were reported with the control key down, but with character codes 1-26.``` 
I only tested the change on a 64-bit Pharo image. Playing around a little with a 64-bit Squeak 5.2 image, it appears that Squeak is likely translating the character codes 1-26 specially.  I added some debugging code to `EventSensor>>fetchMoreEvents` (in the whileFalse: loop): 
```
type = EventTypeKeyboard 
    ifTrue: [Transcript show: (eventBuffer at: 3) printString , ' - ', (eventBuffer at: 5) printString; cr; flush].
```
When running with the old vm and pressing/releasing Ctrl-a, I get this printed to the transcript:
```
251 - 6
1 - 2
1 - 2
1 - 2
63 - 0
```
When running with the new vm I get:
```
251 - 6
97 - 2
97 - 2
97 - 2
251 - 0
```
The new vm generates the correct codes, but Ctrl-a isn't selecting the whole text. Watching the events using `HandMorph showEvents: true`, you can see that the image is converting the old vm's Ctrl-a into Cmd-a, but it isn't converting the new vm's Ctrl-a into Cmd-a.

-- 
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/396#issuecomment-501374393
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20190612/aa435ab9/attachment.html>


More information about the Vm-dev mailing list