If I put a method attached to a field with onAction property, and the method shows a dialog box, hitting the enter key to close the dialog causes the method to be fired again, instead of just closing the dialog box.
Is it an issue or am I missing something?
Sounds like the [neter] event is passed back to the field when focus is passed back there. I assume that [enter] fire the action ?
SalernoJ:
Sounds like the [neter] event is passed back to the field when focus is passed back there. I assume that [enter] fire the action ?
Yes, it does (because the OnAction event).
But my expected behaviour would be that hitting the Enter key when having the dialog open ONLY closes the dialog (because I’m not in the field, so the action shouldn’t fire the action…)
Riccardino:
SalernoJ:
Sounds like the [neter] event is passed back to the field when focus is passed back there. I assume that [enter] fire the action ?
Yes, it does (because the OnAction event).
But my expected behaviour would be that hitting the Enter key when having the dialog open ONLY closes the dialog (because I’m not in the field, so the action shouldn’t fire the action…)
Solved (it had something to do with the visibility of the element receiving the focus)