SqueakJS icon indicating copy to clipboard operation
SqueakJS copied to clipboard

Invalid keyboard events

Open LinqLover opened this issue 1 year ago • 1 comments

The keyboard exerciser (from the objects bin > demo) does not work in SqueakJS because many (all?) events from the VM have a keyCode of 0:

image

LinqLover avatar May 05 '24 02:05 LinqLover

Huh. A key code makes little sense on a stroke event. What are the exact semantics for it? Squeak 5.0 did not have that, it was introduced more recently.

SqueakJS does not generate key up/down events, which is the only place where key codes make sense. Key stroke events work, I think they are valid. It looks like something in image event handling (or in your Keyboard Exerciser) assumes there are up/down events.

codefrau avatar May 05 '24 04:05 codefrau