You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > 2D Editor Library > setFocus

3.17 setFocus

D2Editor:setFocus(boolean)

Sets the user input focus on the editor if true (the default). This is usually called from the on.getFocus event handler.

Returns the text editor object.

Introduced in platform.apiLevel = '2.0'