Method

GtkWindowpropagate_key_event

since: 2.4

Declaration [src]

gboolean
gtk_window_propagate_key_event (
  GtkWindow* window,
  GdkEventKey* event
)

Description [src]

Propagate a key press or release event to the focus widget and up the focus container chain until a widget handles event. This is normally called by the default ::key_press_event and ::key_release_event handlers for toplevel windows, however in some cases it may be useful to call this directly when overriding the standard key handling for a toplevel window.

Available since: 2.4

Parameters

event

Type: GdkEventKey

A GdkEventKey.

The data is owned by the caller of the method.

Return value

Type: gboolean

TRUE if a widget in the focus chain handled the event.