How to detect shift down

Andreas Raab Andreas.Raab at gmx.de
Tue Apr 23 18:06:16 UTC 2002


Try

	ActiveEvent shiftPressed.

Cheers,
  - Andreas

> -----Original Message-----
> From: squeak-dev-admin at lists.squeakfoundation.org 
> [mailto:squeak-dev-admin at lists.squeakfoundation.org] On 
> Behalf Of Ross Boylan
> Sent: Tuesday, April 23, 2002 8:01 PM
> To: squeak-dev at lists.squeakfoundation.org
> Cc: Ross Boylan
> Subject: Q: How to detect shift down
> 
> 
> I am in a morphic project trying to detect if the shift key is
> pressed.
> I have tried a bunch of things like
> Sensor shiftPressed
> InputSensor default anyModifierKeyPressed (with ctl, since comment
> says it ignores shift)
> 
> but it always returns false.
> 
> What's the trick?
> 
> By the way, I'm just doing this so I can say
> Sensor leftShiftDown ifTrue: [self halt]
> so that the halt doesn't stick me in a loop.
> 




More information about the Squeak-dev mailing list