Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic how to process keydown event (Read 1933 times)
hans
Junior Member
**
Offline


I Love MindFusion!

Posts: 81
Location: Netherlands
Joined: Mar 17th, 2012
how to process keydown event
May 16th, 2012 at 9:42am
Print Post  
Can anyone give me an example of how to read the key value?
My KeyDownScript is:
function keydown(diagram,args) {
      alert (args)
}
I can see the args in the alert, but args.KeyChar() or args.getKeyChar() doesn't work.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how to process keydown event
Reply #1 - May 16th, 2012 at 10:06am
Print Post  
Hi,

You can find a KeyDownScript example here:
http://mindfusion.eu/Forum/YaBB.pl?num=1271396273/1#1

You can find the key numerical codes using the applet here:
http://docs.oracle.com/javase/tutorial/uiswing/events/keylistener.html

I think getKeyChar() works only in KeyPressScript handlers.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint