Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Viewing all articles
Browse latest Browse all 1036

Preventing a DzBasicDialog from executing when Return/Enter is pressed

$
0
0

Hello,

I have a small script I am working on that requires the entry/modification of a few numerial values before 'executing the rest of the script' when the Accept button is pressed. When entering numbers in the script/dialog, out of pure bad habit of couse, I tend to press the Return/Enter key to 'confirm' the entered value for a parameter. This silly action is interpreted by the dialog to run whetever is in the if( wDlg.exec() ) { } code block. Is there a way to filter/disable keypresses in the scripting language? I have moved the 'focus' away from the 'Accept' button.

Thanks!

AMZs


Viewing all articles
Browse latest Browse all 1036


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>