Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

CurrentValue["EventKey"] fails?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg88845] CurrentValue["EventKey"] fails?
  • From: Chris Osborn <chrisosb at gmail.com>
  • Date: Mon, 19 May 2008 05:15:59 -0400 (EDT)

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


  • Follow-Ups:
    • Re: fails?
      • From: "Chris Osborn" <chrisosb@gmail.com>
  • 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?