ShortcutManager.handleEvent

This function will try to dispatch @event to the proper widget and #DzlShortcutContext. If the event is handled, then %TRUE is returned.

You should call this from #GtkWidget::key-press-event handler in your #GtkWindow toplevel.

class ShortcutManager
bool
handleEvent
(
GdkEventKey* event
,
Widget toplevel
)

Parameters

event
Type: GdkEventKey*

A #GdkEventKey event to handle.

toplevel
Type: Widget

A #GtkWidget or %NULL.

Return Value

Type: bool

%TRUE if the event was handled.

Meta