[BUG][FIX] anyModifierKeyPressed still uses macOptionKeyPressed

Bert Freudenberg bert at isgnw.CS.Uni-Magdeburg.De
Tue Sep 28 07:35:55 UTC 1999


On Tue, 28 Sep 1999, Alexander Lazarevic wrote:

> Subject says it all. Just a small fix.

> !MorphicEvent methodsFor: 'keyboard' stamp: 'laza 9/28/1999 08:01'!
> anyModifierKeyPressed
>         "ignore, however, the shift keys 'cause that's not REALLY a
> command 
>        key "
>        ^ (self commandKeyPressed or: [self controlKeyPressed])
>                or: [self yellowButtonPressed]! !


macOptionKeyPressed is only equivalent to yellowButtonPressed if is used
to simulate the secondary mouse button (yellow button in Smalltalk terms).
So anyModifierKeyPressed (which was not in the standard image?!) should be
defined as

	^ buttons anyMask: 16r70	"cmd | opt | ctrl"

  /bert





More information about the Squeak-dev mailing list