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>
- Re: fails?