ShortcutTrigger.trigger

gdk.types.KeyMatch trigger(gdk.event.Event event, bool enableMnemonics)

Checks if the given event triggers self.

Parameters

eventthe event to check
enableMnemonicstrue if mnemonics should trigger. Usually the value of this property is determined by checking that the passed in event is a Key event and has the right modifiers set.

Returns

Whether the event triggered the shortcut