Method

GtkWindowactivate_key

since: 2.4

Declaration [src]

gboolean
gtk_window_activate_key (
  GtkWindow* window,
  GdkEventKey* event
)

Description [src]

Activates mnemonics and accelerators for this GtkWindow. This is normally called by the default ::key_press_event handler 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 mnemonic or accelerator was found and activated.