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

Esc key dialog ui

Advocate ,
Nov 01, 2017 Nov 01, 2017

Copy link to clipboard

Copied

Good evening

there would be a way to not close a dialog box by pressing the esc key

or alternatively you could make sure that if you click the esc key off all that was present before using the dialog box.

TOPICS
Actions and scripting

Views

1.0K

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

People's Champ , Nov 01, 2017 Nov 01, 2017

Do not close the window by pressing Esc, you can by defining the onClose function

var d = new Window("dialog", "", undefined );

d.onClose = function() { if (ScriptUI.environment.keyboardState.keyName == "Escape") return false; }

d.show();

PS.. Did not understand the second part of the question)

Votes

Translate

Translate
Adobe
People's Champ ,
Nov 01, 2017 Nov 01, 2017

Copy link to clipboard

Copied

Do not close the window by pressing Esc, you can by defining the onClose function

var d = new Window("dialog", "", undefined );

d.onClose = function() { if (ScriptUI.environment.keyboardState.keyName == "Escape") return false; }

d.show();

PS.. Did not understand the second part of the question)

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
Advocate ,
Nov 02, 2017 Nov 02, 2017

Copy link to clipboard

Copied

Just what I wanted

Thank you

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
Participant ,
Mar 24, 2022 Mar 24, 2022

Copy link to clipboard

Copied

Hi,

 

Could you clarify how to use that code you sent ?

 

Best regards,

Martin

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
LEGEND ,
Mar 24, 2022 Mar 24, 2022

Copy link to clipboard

Copied

LATEST

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