[racket] shift/release shift keys in universe module

From: Mitchell Wand (wand at ccs.neu.edu)
Date: Thu Mar 14 22:42:43 EDT 2013

OK, it's quicker to experiment:

On my windows 7 machine in racket 5.3.3, holding the shift key followed by
a wheel down yields the sequence "shift" "wheel-down" "shift".

So the way to detect shift-click and the like is to look for a button-up
FOLLOWED by shift.

Is there any better way to do this?

--Mitch


On Thu, Mar 14, 2013 at 9:56 PM, Mitchell Wand <wand at ccs.neu.edu> wrote:

> Does releasing a shift key cause a key event in 2htdp/universe ?  I want
> to distinguish between ordinary mouse click and shift click.  What I'd like
> is to have a sequence like
>
> keyevent:  "shift"  (or "rshift")
> mouse-event: button-down [or whatever]
> keyevent: ???    (I release the shift key)
>
> I suppose I could experiment to find out, but it's quicker to ask :)
>
> --Mitch
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130314/a317ce6c/attachment.html>

Posted on the users mailing list.