ShortcutTrigger.trigger

Checks if the given event triggers self.

class ShortcutTrigger
trigger

Parameters

event gdk.event.Event

the event to check

enableMnemonics bool

true 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.

Return Value

Type: gdk.types.KeyMatch

Whether the event triggered the shortcut