Signal

GtkWidget::key-press-event

Declaration

gboolean
key_press_event (
  GtkWidget* self,
  GdkEventKey event,
  gpointer user_data
)

Description [src]

The ::key-press-event signal is emitted when a key is pressed. The signal emission will reoccur at the key-repeat rate when the key is kept pressed.

To receive this signal, the GdkWindow associated to the widget needs to enable the #GDK_KEY_PRESS_MASK mask.

This signal will be sent to the grab widget if there is one.

Default handler:

The default handler is called after the handlers added via g_signal_connect().

Parameters

event

Type: GdkEventKey

The GdkEventKey which triggered this signal.

Return value

Type: gboolean

TRUE to stop other handlers from being invoked for the event. FALSE to propagate the event further.