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.
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)
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)
Copy link to clipboard
Copied
Just what I wanted
Thank you
Copy link to clipboard
Copied
Hi,
Could you clarify how to use that code you sent ?
Best regards,
Martin
Copy link to clipboard
Copied