Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Dynamically updated CurrentValue: I want to know which key is being pressed?
Replies: 3   Last Post: Jan 14, 2013 11:28 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Albert Retey

Posts: 688
Registered: 7/15/08
Re: Dynamically updated CurrentValue: I want to know which key is
Posted: Jan 11, 2013 10:24 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


> Is there a way to get information with CurrentValue of about which key is
> being pressed? CurrentValue only seems to have ways to get mouse buttons
> and modifier key events---which seems odd, I feel like that's going halfway
> with the sort of functionality CurrentValue could provide and I figure I
> must be missing something?

I think you are looking for "EventKey":

EventHandler[Graphics@Rectangle[], {
"KeyDown" :> Print[CurrentValue["EventKey"]]



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2015. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.