onAction event fire when tab out from password field

I have an element whose display type is PASSWORD and attach a method on onAction event.
The method was fire after I key in some data on this element and Tab to next element.
If this element display type is TEXT_FIELD, then the method didnt fire.

Is it a correct behaviour?

thank you.

Servoy Developer
Version 3.5-build 513
Java version 1.6.0_02-b05 (Windows XP)

You probably want to use the onDataChange event (or onFocusLost if the method should run regardless of any data being entered). I believe onAction only works when you hit Enter in the field, not when you tab away.

Dexadrine:
I believe onAction only works when you hit Enter in the field, not when you tab away.

I also wish this is the behaviour when I set the element display type as PASSWORD

I understand that onAction event only work when we hit enter or click on that element but not tab away from that element.

but the true is just like what I mention in first post.
the onAction event was fired when I tab away from that element which I do not expect it happen actually.

anyway, Dexadrine, thanks for your comment.

The onAction firing when the password field looses focus is not correct behavior.

Will be fixed in the next release.

Paul

Thank you :D