Close dialog when clicking outside?


is possible make dialog close when clicking outside of it? (in style of lightbox popup etc)

 

i have dialog, reason esc key wont close it. 

it has edittext boxes, maybe they're stealing focus keyboard?

version escape

        w.addeventlistener ("keydown", function (k) {

            if (k.keyname == "escape") {

                w.close();

            }

 

answer question - function onclick , try if when mouse position outsite mein window



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

Adobe Reader DC install error 150410

Adobe Acrobat Reader DC Updater error: 130200 in Win 7 64bit

Error: 100600 Update failed, updates have been disabled by your system policy