[squeak-dev] Cannot receive F1-F12 keys

Marcel Taeumel marcel.taeumel at hpi.de
Wed Jan 12 11:32:42 UTC 2022

Hi all --

> Perhaps it relates to how Squeak is compiled for Linux? 

Yes, virtual keys in Linux/Ubuntu/X11 are kind of broken at the moment. They are purely derived from X11's (Unicode)-character-input interface, which is wrong and does not work for the F-keys. I started to fix this but it will take more time. I will continue this after the Squeak 6.0 release:

https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/599 [https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/599]

Sorry for the inconvenience. :-/ You can try to apply this patch from PR 599, though. Should work. I am still not convinced whether this is the right way to implement it. :-)

Am 11.01.2022 19:06:38 schrieb Martin Kuball <martinkuball at web.de>:

two years ago (2020-05-31) I asked about function keys in squeak. I got the
answer, that the vm does not support function keys. So, has this changed?


Am Freitag, 7. Januar 2022, 06:52:14 CET schrieb David O'Toole:
> The same is true in Squeak trunk (a few days old.) The KeyboardExerciser
> only captures F11-F12, and as Cmd-. and Cmd-j (see screenshot)
> Perhaps it relates to how Squeak is compiled for Linux?
> On Thu, Jan 6, 2022 at 11:32 PM David O'Toole
> wrote:
> > Actually, F11 and F12 produce a response... and
> > respectively.
> > I'll have to investigate why this is the case.
> >
> > On Thu, Jan 6, 2022 at 11:25 PM David O'Toole
> >
> > wrote:
> >> I am writing a simple tool for binding the F1-F12 keys to one-liner
> >> Smalltalk expressions to quickly switch projects, toggle last project,
> >> switch between active SystemWindow instances, and other useful commands.
> >>
> >> I successfully got my event listener to work, and keyboard events from
> >> keyDown: successfully print in the Transcript as a test (see lower right
> >> in
> >> screenshot; code is at center/left in Sandblocks form.)
> >>
> >> However, pressing F1-F12 has no effect whatsoever, the system seems not
> >> to send keyDown in that case.
> >>
> >> How can I capture these key events? I would greatly appreciate any help
> >> you can offer.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20220112/445ca579/attachment.html>

More information about the Squeak-dev mailing list