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

Keycode event in adobe javascript....

abhishek.wajge
Registered: Feb 21 2011
Posts: 2
Answered

hello,
wanna capture keycode(i.e ASCII) value of keyboard ENTER in adobe forms javascript.I've written the code to call a web service on exit event of adobe JS
and its working for both keyboard ENTER as well as TAB.now i wanna disable tab functionality that's web service should get called only on Keyboard ENTER.
I tried out event.keycode but that doesn't exist in Forms Designer dropdowns options and if I use it anyway it doesn't work.
any help would be appreciated
 
Thanks.

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Accepted Answer
You can't detect enter directly because it's used to drive events. You can however determine if the enter key was used to exit a form field. Look up "xfa.event.commitKey".


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