-
Scripting interface question
Hi guys,
I’m working on a script that has a UI in a dialog window, with some radio controls, some buttons that flip to other ‘hidden’ prefpanes with more controls, and a text-entryfield.
The final ‘OK’ button should be the default-button. It has it’s function attached to the onClick handler.
win.defaultElement = win.stacker.main.b;
win.defaultElement.onClick = storeScene;But when I hit enter, the dialog just closes without executing any code.
Clicking the button does work just fine.Hitting Cancel also closes the window without executing code, which is to be expected.
Even if I create no defaultElement (so the button doesn’t highlight / glow blue in os X) the window still closes when I hit Enter.
As if it’s automatically also the cancelElement ?any thoughts ?
Sorry, there were no replies found.