[squeak-dev] [BUG] Keyhandling on Windows

Marcel Taeumel marcel.taeumel at hpi.de
Mon Mar 2 09:50:28 UTC 2020


Hi Christoph.

Try looking on squeak-dev for more information about user-input event processing and their quirks on various platforms.

In this case, it would help if you could find out the raw event data that arrives in Squeak through the EventSensor. It is an array filled with numbers. That a look at the class comment from EventSensor.

Considering control keys, also take a look at the mapping tables in TextEditor and all its subclasses.

We chose to not touch this issue in 5.3. We might want to harmonize that after the release.

I am in favor of programming against "#isControlKeyPressed and #keyCharacter ==" instead of actual control keycodes: 

https://en.wikipedia.org/wiki/Control_character

http://www.physics.udel.edu/~watson/scen103/ascii.html


It would feel more object-oriented. But that's just my two cents. ;-) I rarely work in terminals. Anyway, one could easily map all control keycodes to higher-level object events in EventSensor or HandMorph.

Or maybe use [cmd]+[c] instead of [ctrl]+[c] anyway ... Hmmm....

Best,
Marcel
Am 28.02.2020 19:24:27 schrieb Thiede, Christoph <christoph.thiede at student.hpi.uni-potsdam.de>:
Ctrl + Home - keystroke '<Cmd-a>' (97)
Ctrl + End - keystroke '<Cmd-d>' (100)
Ctrl + Insert - keystroke '<Cmd-e>'

Ctrl + PageUp - keystroke '<Cmd-k>'
Ctrl + PageDown - keystroke '<Cmd-l>' (108)
Only Ctrl + Delete works ...
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Thiede, Christoph
Gesendet: Freitag, 28. Februar 2020 19:20:30
An: Squeak Dev
Betreff: Re: [squeak-dev] [BUG] Keyhandling on Windows
 
Possibly related issue:
Ctrl + End generates an event like this: keystroke '<Cmd-d>' (100)
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Thiede, Christoph
Gesendet: Freitag, 21. Februar 2020 14:22:18
An: Squeak Dev
Betreff: [squeak-dev] [BUG] Keyhandling on Windows
 
Hi all,

sorry to report to you another, though minor issue related to keyboard handling.

Steps to reproduce:
* Open a fresh trunk image on Windows
* turn off num lock (so that 4 works like arrowLeft)

* Go to any editor, such as workspace
* Press the number key 5

Expected behavior:
No character is inserted, as digits are turned off.

Actual behavior:
The quotes character (") is inserted.

Notes:
The issue already existed in Squeak 5.2, 4.6 and 3.9 (from my random tests).

Best,
Christoph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200302/1038cf2a/attachment.html>


More information about the Squeak-dev mailing list