1 Reply Latest reply on Apr 2, 2009 10:06 AM by Patrick Leckey

    Traping CTRL key when clicking on a button in a PDF form.

      I use Acrobat Pro 9 on Windows XP to create training simulators that will run on Reader 7. I need to be able to change how a button reacts when clicked if the CTRL key is held down. I have reviewed a lot of JAVA resources and have confused myself. Have not been able to find any simple modifier key traps that will work within a PDF form button script. Any assistance would be appreciated.
      Brad
        • 1. Re: Traping CTRL key when clicking on a button in a PDF form.
          Patrick Leckey Level 3
          Java and JavaScript are different languages - the names make it confusing, but one cannot be ported to the other. Make sure you are looking for JavaScript examples when working with Acrobat, not Java.

          That being said, there is no way to trap keys document-wide from Acrobat JavaScript. You can trap key presses on specific fields, but not document-wide. For that, you would need to create a plug-in, and plug-ins for Acrobat can only be written in C/C++.