Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13115

Re: Dynamically updated CurrentValue: I want to know which key is

From awnl <awnl@gmx-topmail.de>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Dynamically updated CurrentValue: I want to know which key is
Date 2013-01-12 03:24 +0000
Message-ID <kcql13$lrl$1@smc.vnet.net> (permalink)
References <kcntv9$f8j$1@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


Hi,

> 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"]]
   }]

hth,

albert

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Dynamically updated CurrentValue: I want to know which key is being pressed? Brentt <brenttnewman@gmail.com> - 2013-01-11 02:38 +0000
  Re: Dynamically updated CurrentValue: I want to know which key is awnl <awnl@gmx-topmail.de> - 2013-01-12 03:24 +0000
    Re: Dynamically updated CurrentValue: I want to know which key is Alexey Popkov <lehin.p@gmail.com> - 2013-01-14 05:00 +0000
      Re: Dynamically updated CurrentValue: I want to know which key is awnl <awnl@gmx-topmail.de> - 2013-01-15 04:28 +0000

csiph-web