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

Apr 12, 2018

Copy link to clipboard

Copied

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.

Adobe Community Professional
Correct answer by Karl Heinz Kremer | Adobe Community Professional

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.

TOPICS
Acrobat SDK and JavaScript, Macintosh

Views

136

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

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

Apr 12, 2018

Copy link to clipboard

Copied

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.

Adobe Community Professional
Correct answer by Karl Heinz Kremer | Adobe Community Professional

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.

TOPICS
Acrobat SDK and JavaScript, Macintosh

Views

137

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Apr 12, 2018 0
Most Valuable Participant ,
Apr 13, 2018

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 13, 2018 0
Adobe Community Professional ,
Apr 13, 2018

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 13, 2018 0
Apr 18, 2018

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 18, 2018 0
Adobe Community Professional ,
Apr 14, 2018

Copy link to clipboard

Copied

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"

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 14, 2018 0