Command/control key mapping

Doug Way dway at riskmetrics.com
Sat Feb 2 05:04:35 UTC 2002


Hannes Hirzel wrote:
> 
> Hi Harry
> 
> On Thu, 31 Jan 2002, Harry Chesley wrote:
> 
> > I recall a discussion on the list a while ago about allowing Windows
> > users to use control- rather than alt-. I don't recall whether there was
> > any final resolution (i.e., code) posted. I looked in the Squeak Fixes
> > archives, but didn't see it.
> 
> I recall as well that somebody sent a change set to the list, but it is
> difficult to find even as I have all the mails on the harddisk. The
> problem of comming up with the correct search key ...

That was me... the changeset is at:  http://groups.yahoo.com/group/squeak/message/36392

(A search for "windows ctrl" or "windows control" on the Yahoo site would have eventually found this, although you'd have to sift through a bunch of other matches too...)

> > I'd be quite happy with something that swapped control- and alt-, or
> > with something allowed the core commands (x, c, v, z, s, l) to be used
> > with either control- or alt-.

My changeset adds a preference which swaps the core commands between control and alt.

One question is: which ones are really the core commands?  I chose -z, -x, -c, -v, -s, -f, -g and -a because they're common standards in text editors on both Windows and the Mac as well as in Squeak.  (Alt-l only has meaning in Squeak, I think?)

Which reminds me, do Linux apps typically use ctrl-x/c/v etc. for cut/copy/paste etc.?  I'm guessing not, I remember when I used SGI/Irix the apps (e.g. Netscape) tended to support emacs-like editing commands by default instead.

> The list isn't at all a good medium for documenting things. A better
> medium is the Swiki. You are probably aware of
> 
> FAQ: Keyboard shortcuts and bindings
> http://minnow.cc.gatech.edu/squeak/1844
> 
> and
> 
> FAQ: Modifier Keys
> http://minnow.cc.gatech.edu/squeak/898

Yes, I'm usually adding things to Swiki pages so I'm surprised that I forgot to do this.  But on the other hand, I think this changeset (since it is a preference) should be added to the base image (in one form or another), so hopefully that will happen in the enhancements sweep for 3.3alpha which should start pretty soon.

There are other ways this kind of change could be done (such as a total ctrl-alt swap preference, or a VM change), but this seemed like the least intrusive way of handling it.

> Having the right command key
> mappings is important not to put an obstacle for new Squeak users with a
> Windows PC. It can disappoint people considerably if they are not able to
> do basic things with ease (copy/paste) when using new software.

Absolutely.  (Though they will have to set the preference.  Having it be ctrl by default could cause various problems with documentation, etc.)

> ...
> There could even be a kind of editor for keyboard mappings or at least a
> preferences panel for certain settings.

This gives me an idea that it might be nice to have a button on the preferences panel (maybe in a new "keyboard" prefs group) called "Edit key mappings" or similar which brings up a browser on the #initializeCmdKeyShortcuts method, perhaps with an instructive comment.

> To sum up:
> Perhaps the person who did the change set for the Windows key
> mapping reads this mail and reposts the change set so  that we can more properly
> document it (i.e. making it acessible).

Okie doke. :-)

- Doug Way
  dway at riskmetrics.com



More information about the Squeak-dev mailing list