PDA

View Full Version : Remove Focus


JoeDeveloper
11-30-2007, 07:38 PM
I have a TextInput box in a DataGridColumn and I want to take the focus off of it. Is there any way I can take the focus off of it? I know you can point it somewhere else by doing:

somewhereElse.setFocus() in your code but is there an explicit way of just telling the focus to come off of the TextInput without pointing the focus somewhere else?

Thanks.

dr_zeus
11-30-2007, 10:36 PM
I believe this should work:

this.stage.focus = null;

jfoley
01-06-2009, 06:42 AM
You can set the focusThickness in a stylesheet and it will kill the focus.

focusThickness: 0;

hristo
01-13-2009, 09:26 PM
I believe this should work:

this.stage.focus = null;
Thanks setting

this.stage.focus = null;

successfully remove focus from a TextInput