Function

GtkKeySnoopFunc

Declaration

gint
(* GtkKeySnoopFunc) (
  GtkWidget* grab_widget,
  GdkEventKey* event,
  gpointer func_data
)

Description [src]

Key snooper functions are called before normal event delivery. They can be used to implement custom key event handling.

Parameters

grab_widget

Type: GtkWidget

The widget to which the event will be delivered.

The data is owned by the caller of the function.
event

Type: GdkEventKey

The key event.

The data is owned by the caller of the function.
func_data

Type: gpointer

Data supplied to gtk_key_snooper_install()

The argument can be NULL.
The data is owned by the caller of the function.

Return value

Type: gint

TRUE to stop further processing of event, FALSE to continue.