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 GtkWidget
 

The widget to which the event will be delivered.

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

The key event.

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

Data supplied to gtk_key_snooper_install()

Return value

Returns: gint
 

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