• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

New Here ,
Apr 12, 2018 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.

TOPICS
Acrobat SDK and JavaScript

Views

437

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
community guidelines

correct answers 1 Correct answer

Community Expert , Apr 13, 2018 Apr 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 softwa

...

Votes

Translate

Translate
Community Expert ,
Apr 13, 2018 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.

Votes

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
community guidelines
Community Expert ,
Apr 13, 2018 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.

Votes

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
community guidelines
New Here ,
Apr 18, 2018 Apr 18, 2018

Copy link to clipboard

Copied

LATEST

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

Votes

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
community guidelines
Community Expert ,
Apr 14, 2018 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"

Votes

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
community guidelines