key_pressed


Description:

public virtual signal bool key_pressed (uint key_code)

Emitted when a key is pressed.

This event is propitiated to all child widgets until a signal handler returns true to indicate that the key has been handled.

Due to a shortcoming in vala, you currently also have to call

Signal.stop_emission_by_name (this, "key-pressed");
in addition to returning true.