You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Platform Library > setFocus

14.7.4 setFocus

platform.window:setFocus(boolean)

This function sets the focus to the main window. Any focus of other objects is removed (currently only D2Editor).

Introduced in platform.apiLevel = '2.0'