key_pressed


Description:

[ Version ( since = "3.24" ) ]
public signal bool key_pressed (uint keyval, uint keycode, ModifierType state)

This signal is emitted whenever a key is pressed.

Parameters:

keyval

the pressed key.

keycode

the raw code of the pressed key.

state

the bitmask, representing the state of modifier keys and pointer buttons. See ModifierType.

Returns:

true if the key press was handled, false otherwise.




2022 vala-language.org