[Please confirm/deny] swapControlAndAltKeys doesn't swap

Ned Konz ned at bike-nomad.com
Sun Jul 20 18:36:49 UTC 2003


On Sunday 20 July 2003 10:46 am, Christian Eitner wrote:
> Well, strangely enough the Sensor kbdTest gives correct values for
> some keys (Ctrl-a = `a 97 64'), but rubbish for others (ctrl-d = `4
> 16'). I'll attribute this to `never to be found out about
> peculiarities (lest I find some huge extra slot of playin' round
> time)'. Thanks Ned for the kbdTest hint.

The #swapControlAndAltKeys preference only swaps *some* ctrl and alt 
keys.

Look at InputSensor class>>defaultCrossPlatformKeys, which has the 
list:


"Answer a list of key letters that are used for common editing 
operations
	on different platforms."
	^{ $c . $x . $v . $a . $s . $f . $g . $z }

If you want to swap other keys, you can edit this, or you can manually 
change them. For instance, to swap ctrl-D with alt-D, you can do 
this:

InputSensor installSwappedKeyEntryFor: $d

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE



More information about the Squeak-dev mailing list