Crafty.selected

Events

CraftyFocus
is triggered when Crafty's stage gets selected
CraftyBlur
is triggered when Crafty's stage is no longer selected

Check whether Crafty's stage (Crafty.stage.elem) is currently selected.

After a click occurs inside Crafty's stage, this property is set to true. After a click occurs outside Crafty's stage, this property is set to false.

Defaults to true.