handle_event


Description:

public bool handle_event (EventKey event, Widget toplevel)

This function will try to dispatch event to the proper widget and ShortcutContext.

If the event is handled, then true is returned.

You should call this from key_press_event handler in your Window toplevel.

Parameters:

this

An ShortcutManager

event

A EventKey event to handle.

toplevel

A Widget or null.

Returns:

true if the event was handled.