Closing dialog with Esc key

QuestionsClosing dialog with Esc key
Stan asked 10 years ago

How would I go about adding the ability to close the dialog box with the Esc key? i know I can do this with the edit dialog, but I want to be able to with the View Dialog window.

1 Answers
David answered 10 years ago

Hi,

$opt["view_options"] = array("recreateForm" => true, "closeOnEscape"=>true);

Your Answer

20 + 1 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?