[squeak-dev] Cannot receive F1-F12 keys

Marcel Taeumel marcel.taeumel at hpi.de
Thu Jan 13 09:20:31 UTC 2022

Hi David --

> it's probably time I learned how to compile the virtual machine.

Just clone "https://github.com/OpenSmalltalk/opensmalltalk-vm.git" and then:

cd building/linux64x64/squeak.cog.spur/build
sudo make install

Maybe re-configure before compile:

cd platforms/unix/config/
make configure

For missing packages, take a look at "scripts/ci/actions_prepare_linux_x86.sh". It's optimized for Ubuntu/Debian.

Am 12.01.2022 17:27:40 schrieb David O'Toole <deeteeoh1138 at gmail.com>:
Hello marcel, thank you so much for taking the time to address this. I may try out that patch and let you know what happens , it's probably time I learned how to compile the virtual machine. In the interim I am still able to command shift 1/2/3 etc.

On Wed, Jan 12, 2022, 6:33 AM Marcel Taeumel <marcel.taeumel at hpi.de [mailto:marcel.taeumel at hpi.de]> wrote:

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 [mailto: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/20220113/8a6a07c8/attachment.html>

More information about the Squeak-dev mailing list