dialogue spacebar / enter

Hi,

We use a showQuestionDialogue in Find mode to ask te user if he wants to enter search criteria again,
or if he wants to cancel Find when no records are found. (Search again No/Yes)

This works fine when the user clicks the Yes button, or when he uses the TAB key to go to the Yes button and the space bar to select this YES answer.

But when he uses the TAB key to go to the YES button and then hits the ENTER key, the dialog call returns a YES
BUT the enter is also processed by Servoy and a new search is executed…

Any ideas how to prefent this behaviour ( flush the input buffer or ??)

Regards,

i am afraid that this cant be changed
Problem is that buttons works on keypress and the find action works on key release.
And i cant change any one of them because then other things dont work anymore.

for example if i make the find action also work on keypress then buttons that are on the form will not trigger there event anymore when an enter is pressed when it has focus
because then the find will happen…

the only thing i can say is try to educate people that they use the space instead of enter when using keyboard to execute an action of a button…

Thanks Johan !