[ENH] duplicateAllControlAndAltKeys

Doug Way dway at mailcan.com
Fri Dec 17 16:25:22 UTC 2004


On Thu, 16 Dec 2004 00:30:48 -0500, "Milan Zimmermann"
<milan.zimmermann at sympatico.ca> said:
> Doug,
> 
> I tried this by importing the changeset to 3.9. A 
> "duplicateAllControlAndAltKeys" preferences appeared. I tested the basics 
> (Ctrl-c/v/s/a Alt-c/v/s/a Ctrl+Shift-i, Alt_Shift-i) and they work.
> 
> A few that surprised me a bit (and I do not know what it is assumed to
> do): I 
> opened workspace, wrote some text, went to middle and did:
> 	
> 	Alt-Home goes to top
> 	Alt-End goes to bottom
> but
> 	Ctrl-Home works as Ctrl-a (highlight all)
> 	Ctrl-End highlights one line

Yeah.  Well, I actually ended up defining "all" keys as all alphanumeric
keys, so that's why the keys like Home and End aren't actually
duplicated.

I did this because when I duplicated all keys, I got some unexpected
unpleasant behavior while using the scroll wheel on Mac OS X, it
suddenly started deleting characters instead of scrolling up!  I guess
ctrl-uparrow and ctrl-downarrow map to the scroll wheel, and there was
some conflict when duplicating the keys.  (Perhaps cmd-arrow is a sort
of delete on the Mac, although I couldn't get it to happen via the
keyboard.  This doesn't happen on Windows.)

In any case, the non-alphanumeric keys probably should be duplicated
too, but I don't think it's a serious problem.  We could consider it a
bug, but I still think we should go ahead with this changeset.

- Doug



More information about the Squeak-dev mailing list