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


Groups > comp.soft-sys.math.mathematica > #9976 > unrolled thread

KeyUp event

Started byVincent <sheeplane@gmail.com>
First post2012-05-07 00:32 +0000
Last post2012-05-08 08:12 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  KeyUp event Vincent <sheeplane@gmail.com> - 2012-05-07 00:32 +0000
    Re: KeyUp event Szabolcs Horvát <szhorvat@gmail.com> - 2012-05-08 08:12 +0000

#9976 — KeyUp event

FromVincent <sheeplane@gmail.com>
Date2012-05-07 00:32 +0000
SubjectKeyUp event
Message-ID<jo757e$bt3$1@smc.vnet.net>
Is there any way to determine if a key is currently depressed, or to trigger an event when a key is released in Mathematica? Similarly to

EventHandler[
 InputField[""], {"KeyDown", "h"} :> ( Print["h pressed"];)]

only with the trigger being the release rather then the pressing?

[toc] | [next] | [standalone]


#9991

FromSzabolcs Horvát <szhorvat@gmail.com>
Date2012-05-08 08:12 +0000
Message-ID<joakhi$njg$1@smc.vnet.net>
In reply to#9976
On 2012.05.07. 2:32, Vincent wrote:
> Is there any way to determine if a key is currently depressed, or to trigger an event when a key is released in Mathematica? Similarly to
>
> EventHandler[
>   InputField[""], {"KeyDown", "h"} :>  ( Print["h pressed"];)]
>
> only with the trigger being the release rather then the pressing?
>

This was cross posted on Mathematica.SE as well.  The following comment 
suggests this might not be possible directly in Mathematica:

http://mathematica.stackexchange.com/questions/5246/detecting-keyup-events#comment14383_5246

-- 
Szabolcs Horvát
Visit Mathematica.SE:  http://mathematica.stackexchange.com/

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web