These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

key code

kennyworld
Registered: Oct 17 2007
Posts: 2

Can I judge the key code in javascript when stroking?

My Product Information:
Acrobat Standard 7.0.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
In an AcroForm field, you can use the "KeyStroke" event to examine and change the input keystroke. This article discusses the keystroke event.

[url=http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/formatting_text_fields/]http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/formatting_text_fields/[/url]

In a LiveCycle form, use the "Change" event and the "xfa.event.change" property to do the same thing.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script