Dialog question AE7

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
gvovk
Posts: 3
Joined: May 10th, 2007, 7:50 am

Hi there,

I wrote a UI and I wanted to have bigger fonts for input fields. So I decided to go for Dialog instead of Palette.

Now, lo and behold, each time I tap Return or Enter after typing into Edit Text, the Dialog closes ... I didn't experience such behaviour in Palette mode.

It's baffeling me big time and I just don't know where I went wrong.
I know Esc is supposed to close window but I don't know why Return does the same ... as if some hidden cancel button is lurking somewhere in the dialog ... :)

Any idea will save me a lot of money for my hair transplant surgery.

Tnx & cheers
G
Paul Tuersley
Posts: 704
Joined: June 5th, 2004, 7:59 am
Location: London, UK

I had a quick look at this but didn't find a solution. A "dialog" is modal, with Ok and Cancel elements built in by default. This is from pg 149 of the CS2 BridgeJavaScriptRef.pdf:
Window elements contain the following properties, in addition to those common to all ScriptUI elements:

defaultElement
Object For a window of type dialog, the control to notify when a user types the ENTER key. By default, looks for a button whose name or text is "ok" (case disregarded).
Post Reply