How to detect shift down
RossBoylan at stanfordalumni.org
Sat Apr 27 01:17:47 UTC 2002
On Fri, Apr 26, 2002 at 05:35:01PM -0700, John M McIntosh wrote:
> >On Wed, Apr 24, 2002 at 11:27:55AM +0200, Andreas Raab wrote:
> >> > > ActiveEvent shiftPressed.
> > > >
> > > >
> The global var Sensor points to the active Sensor for managing events
> from the VM.
> Sensor shiftPressed
> should do what you want it
> ActiveEvent is a global that points to the current MorphicEvent
> subclass instance which might or might not know about the shift key
> right yet, since of course the Sensor knows about the shift key a bit
> ahead of giving it to Morphic.
> Mind it seems as you noticed be set to nil, (should it be?).
Unfortunately, Sensor shiftPressed not working was what got me started
on this thread :(. I just double-checked, and it does not test as
true, even though I'm sitting on the shift key.
This is on Linux, 3.2alpha #4599.
More information about the Squeak-dev