MathGroup Archive 2013

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Dynamically updated CurrentValue: I want to know which key is

  • To: mathgroup at smc.vnet.net
  • Subject: [mg129435] Re: Dynamically updated CurrentValue: I want to know which key is
  • From: Alexey Popkov <lehin.p at gmail.com>
  • Date: Mon, 14 Jan 2013 00:01:30 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <kcntv9$f8j$1@smc.vnet.net> <kcql13$lrl$1@smc.vnet.net>

On Saturday, January 12, 2013 7:24:19 AM UTC+4, awnl wrote:
> Hi,
> 
> 
> 
> > Is there a way to get information with CurrentValue of about which key is
> 
> > being pressed? CurrentValue only seems to have ways to get mouse buttons
> 
> > and modifier key events---which seems odd, I feel like that's going halfway
> 
> > with the sort of functionality CurrentValue could provide and I figure I
> 
> > must be missing something?
> 
> 
> 
> I think you are looking for "EventKey":
> 
> 
> 
> EventHandler[Graphics@Rectangle[], {
> 
>    "KeyDown" :> Print[CurrentValue["EventKey"]]
> 
>    }]
> 
> 
> 
> hth,
> 
> 
> 
> albert


But why not all keys are catched by "EventKey"? For example, pressing "a", "i", "o", "p" etc. does nothing. Why?

Sincerely,
Alexey



  • Prev by Date: Re: Making a palette to control dynamic variables?
  • Next by Date: Re: Aligning graphics on frame boundaries
  • Previous by thread: Re: Dynamically updated CurrentValue: I want to know which key is
  • Next by thread: Re: Dynamically updated CurrentValue: I want to know which key is