Copy link to clipboard
Copied
When the user hits the [RETURN] key on the keyboard, a currently displayed dialog is dismissed, but the defaultElement's onClick() handler is not getting called.
How can I run validation when the user hits the [RETURN] key, keeping the dialog from closing early?
My observation, hitting the [RETURN] key on the keyboard wouldn't trigger the defaultElement's onClick() handler, was wrong. Today I added an alert("Test") to the onClick() handler and it got triggered all the time.
Apologies for not checking thoroughly before posting here!
Copy link to clipboard
Copied
Hi there!
I replied to your other post with more questions, the I assume this is about the same panel or script?
Copy link to clipboard
Copied
My observation, hitting the [RETURN] key on the keyboard wouldn't trigger the defaultElement's onClick() handler, was wrong. Today I added an alert("Test") to the onClick() handler and it got triggered all the time.
Apologies for not checking thoroughly before posting here!