Skip to main content
JunpeiTokunaga
Participant
May 21, 2019
Answered

Particular key event using JavaScript()?

 I am using Acrobat Pro DC and making an original PDF form,  I want to jump to a certain text box if I push "ctrl + →" key. Is anyone can help or ideas? like shortcut key or  "KeyDown" event of VBA

I am using Windows

This topic is closed to new replies. Start a new post to keep the conversation going.
Thom Parker
Thom ParkerCorrect answer
Community Expert
May 21, 2019

Well, you can detect the control key and the keycode in a keystroke event. So yes you can do this, but it's tricky, because Acrobat overrides some keystroke combinations. If Acrobat is using it, then it won't be received by the keystroke event. Go ahead and try it to see what happens.

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often

3 replies

Legend
May 21, 2019

You can't really modify the default keystroke handling.

Translate
Thom Parker
Community Expert
Thom ParkerCommunity ExpertCorrect answer
Community Expert
May 21, 2019

Well, you can detect the control key and the keycode in a keystroke event. So yes you can do this, but it's tricky, because Acrobat overrides some keystroke combinations. If Acrobat is using it, then it won't be received by the keystroke event. Go ahead and try it to see what happens.

Translate
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
JunpeiTokunaga
Participant
May 26, 2019

Thanks

Translate