MathGroup Archive 2008

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

Search the Archive

CurrentValue["EventKey"] fails?

To all,

I am unable to create an expression that reports what key has been
pressed.  It seems that CurrentValue["EventKey"] always returns

Here is the code:

EventHandler["a string", "KeyDown" :> Print[CurrentValue["EventKey"]]]

I get similar results with:

 "KeyDown" :> (key = CurrentValue["EventKey"])]

Thanks in advance,

  • Prev by Date: Framed[3, FrameStyle -> None] fails
  • Next by Date: Re: Filtering a list of list for certain elements that are neighbours
  • Previous by thread: Re: Framed[3, FrameStyle -> None] fails
  • Next by thread: Re: fails?