[squeak-dev] Re: Modifier key events

Andreas Raab andreas.raab at gmx.de
Thu Feb 25 13:39:00 UTC 2010


Bert Freudenberg wrote:
> However, I consider keyboard handling in general pretty broken. The VMs are inconsistent, and there is no proper translation layer in the image. That means keyboard handling code cannot be written in a platform-independent way. 
> 
> Also IMHO shortcuts should match the platform's common usage. E.g. copy/paste should use Ctrl on Windows but Cmd on the Mac. In Etoys we simply enable swapCtrlAndAlt on startup if running on Windows or Unix, but that only goes so far ...

If we care about this (which I'm not entirely sure about) we should lift 
the platform support from Tweak (i.e., the CPlatform classes). They have 
platform mappings for all the common shortcuts and it's what we rely on 
in our products.

Cheers,
   - Andreas



More information about the Squeak-dev mailing list