Skip to main content
calebr86468944
Participant
April 13, 2018
Answered

Nothing happens when pressing cmd + enter in console to execute code

  • April 13, 2018
  • 3 replies
  • 748 views

I open the debugger with cmd + J, type something like 3 + 7 into the console, and hit cmd + enter... all I get is an error sound.

I have searched for an hour to find a solution to this simple problem. I see no reason why it should not just execute the darn code.

Why is this so difficult?!?

Running Acrobat Pro DC 2018 on OS X Sierra.

This topic has been closed for replies.
Correct answer Karl Heinz Kremer

I have  Acrobat DC running on Sierra as well, and Cmd-Return works (I am however also getting a short sound). Do you have a full sized keyboard, or are you on a MacBook?

Here are a few more things to try:

Make sure that you hold down Cmd before you hit Return.

Make sure the cursor is in the line that you want to execute.

Select the whole expression before you use the key combination.

Do you have any software running that intercepts key codes (e.g. a screen capturing software or keyboard macro software)? If so, try to disable this software before you use the JS console.

3 replies

JR Boulay
Community Expert
Community Expert
April 14, 2018

Be sure to use the Enter key, not Return.

If you're using the small Apple keyboard without numeric pad (MacBook, iMac) you must hit "fn + Return"

Acrobate du PDF, InDesigner et Photoshopographe
Karl Heinz  Kremer
Community Expert
Karl Heinz KremerCommunity ExpertCorrect answer
Community Expert
April 13, 2018

I have  Acrobat DC running on Sierra as well, and Cmd-Return works (I am however also getting a short sound). Do you have a full sized keyboard, or are you on a MacBook?

Here are a few more things to try:

Make sure that you hold down Cmd before you hit Return.

Make sure the cursor is in the line that you want to execute.

Select the whole expression before you use the key combination.

Do you have any software running that intercepts key codes (e.g. a screen capturing software or keyboard macro software)? If so, try to disable this software before you use the JS console.

calebr86468944
Participant
April 19, 2018

My Webroot was using a "secure keyboard entry mode"... When I turned this off, it fixed the problem. Thanks!

try67
Community Expert
Community Expert
April 13, 2018

Did you read this tutorial? https://acrobatusers.com/tutorials/javascript_console

You need to use the Enter key in the numeric pad, not the "main" one.