Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6200
| From | Armand Tamzarian <mike.honeychurch@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: {Keydown,"c"} event in graphics |
| Date | 2011-11-05 09:52 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j9311p$abf$1@smc.vnet.net> (permalink) |
| References | <j90h73$sn1$1@smc.vnet.net> |
On Nov 4, 10:10 pm, nico...@virtualdynamics.fr wrote:
> Does any body knows how to set a key down event for "c" for an event
> handler wrapped around a graphics object ?
>
> The "c" is associated by the front end to the creation of a circle,
> and i need this key and others shortcuts for other tasks.
>
> EventHandler[Graphics[{}], {"KeyDown", "c"} :> ( (* does not work *)
> Beep[])]
>
> Thanks Nicolas
Coincidentally I asked tech support about this recently. Some lower
case keys are committed for other functionality. This seems to be the
case with lower case "c". Use upper case "C" and then use Shift "c" to
"activate" e.g.
EventHandler[Graphics[{}], {"KeyDown", "C"} :> ( (* does not work
*)Beep[])]
then do Shift C and it will work. Or alternatively
EventHandler[Graphics[{}], {"KeyDown", "x"} :> ( (* does not work
*)Beep[])]
works okay for me.
Mike
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
{Keydown,"c"} event in graphics nicolas@virtualdynamics.fr - 2011-11-04 11:10 +0000
Re: {Keydown,"c"} event in graphics Silvia <wyelen@gmail.com> - 2011-11-05 09:49 +0000
Re: {Keydown,"c"} event in graphics Armand Tamzarian <mike.honeychurch@gmail.com> - 2011-11-05 09:52 +0000
Re: {Keydown,"c"} event in graphics Chris Degnen <degnen@cwgsy.net> - 2011-11-05 09:56 +0000
Re: {Keydown,"c"} event in graphics nicolas@virtualdynamics.fr - 2011-11-06 10:59 +0000
csiph-web