set a buttons focus to false

Is there any code to just set a buttons focus to false on touch outside of the ui.lua file?
button.isfocus = false doesn’t seem to work. [import]uid: 4871 topic_id: 772 reply_id: 300772[/import]

try

display.getCurrentStage():setFocus( nil )

There are two parts if using the ui way of creating buttons

self.status = false, this is the buttons way of knowing it has been pressed, its just a variable being set

display.getCurrentStage():setFocus( nil ), this tells Corona that the button is no longer pressed and it can now allow touch events on other buttons [import]uid: 5354 topic_id: 772 reply_id: 1575[/import]