set_key_focus


Description:

[ Version ( since = "0.6" ) ]
public void set_key_focus (Actor? actor)

Sets the key focus on actor.

An actor with key focus will receive all the key events. If actor is null, the stage will receive focus.

Parameters:

this

the Stage

actor

the actor to set key focus to, or null