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
"None".


Here is the code:

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


I get similar results with:

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


Thanks in advance,
Chris


  • 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?