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

3.7 hasFocus

D2Editor:hasFocus()

Returns true if the editor has focus; otherwise returns false.

Introduced in platform.apiLevel = '2.0'