key_press_event


Description:

public virtual signal bool key_press_event (CanvasItem target, EventKey event)

Emitted when a key is pressed and the item has the keyboard focus.

Parameters:

event

the event data.

target_item

the target of the event.

Returns:

true to stop the signal emission, or false to let it continue.