simulate mouse click

hi guys

some of my components get focus when clicked and don’t lose focus.
they lose focus only when clicking anywhere
so i want to simulate mouse click

any idea ?

of course a solution for the main problem (focus) would be better :smiley:

Hi,
did you try existing method focus() ? :blink: It’s available for all AbstractField objects (buttons, fields…)

focus() ; makes the item focused
i want it to lose focus :smiley:

Well, try focus object A so you will lose focus on object B :slight_smile: (maybe add hidden field and set focus on it?) Or, try fire onMouseClick event on other object? Just guessing… :stuck_out_tongue: