MathGroup Archive 2008

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

Search the Archive

CurrentValue["EventKey"] fails?

  • To: mathgroup at
  • Subject: [mg88845] CurrentValue["EventKey"] fails?
  • From: Chris Osborn <chrisosb at>
  • 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

Here is the code:

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

I get similar results with:

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

Thanks in advance,

  • Follow-Ups:
    • Re: fails?
      • From: "Chris Osborn" <>
  • 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?