[racket] shift/release shift keys in universe module

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Thu Mar 14 22:46:27 EDT 2013

No. And what you got is a coincidence.  big-bang wasn't designed with these subtleties in mind. Quite the opposite, the original intent was to move people on to Racket's real GUI toolbox. It just so happens that people use big-bang and universe far beyond the original intent. -- Matthias



On Mar 14, 2013, at 10:42 PM, Mitchell Wand wrote:

> 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
> 
> 
> 
> 
> 
> 
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130314/bb5454d3/attachment.html>

Posted on the users mailing list.