<div dir="ltr">OK, I will have to use another gesture. My goal is to build something like the "grouping" functionality in PowerPoint/Word/etc. <div><br><div>The vocabulary I have in mind is</div><div><br></div><div>
"n" - -adds a new square to the canvas, at the mouse point<div style>mouse-down mouse-up -- selects the current shape</div><div style>mouse-down "a" -- adds the current shape to the current selection</div>
</div></div><div style>"g" -- turns the shapes in the current selection into a single shape</div><div style>"u" -- ungroups the shapes in the current selection</div>
<div style><br></div><div style>Do you see anything problematic there?</div><div style><br></div><div style>--Mitch</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 14, 2013 at 10:46 PM, Matthias Felleisen <span dir="ltr"><<a href="mailto:matthias@ccs.neu.edu" target="_blank">matthias@ccs.neu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div><div>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</div>
<div><br></div><div><br></div><br><div><div><div class="h5"><div>On Mar 14, 2013, at 10:42 PM, Mitchell Wand wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5"><div dir="ltr">OK, it's quicker to experiment:<div>
<br></div><div>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".</div>
<div><br></div><div>So the way to detect shift-click and the like is to look for a button-up FOLLOWED by shift.</div><div><br></div><div>Is there any better way to do this?</div><div><br></div>
<div>--Mitch</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 14, 2013 at 9:56 PM, Mitchell Wand <span dir="ltr"><<a href="mailto:wand@ccs.neu.edu" target="_blank">wand@ccs.neu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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<div>
<br></div><div>keyevent: "shift" (or "rshift")</div>
<div>mouse-event: button-down [or whatever]</div><div>keyevent: ??? (I release the shift key)</div><div><br></div><div>I suppose I could experiment to find out, but it's quicker to ask :)</div>
<div><br></div><div>--Mitch</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>
</blockquote></div><br></div></div></div><div class="im">
____________________<br> Racket Users list:<br> <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br></div></blockquote></div><br></div></blockquote></div><br></div>