trigger

open fun trigger(event: <Error class: unknown class>, enableMnemonics: Boolean): <Error class: unknown class>

Checks if the given @event triggers @self.

Return

Whether the event triggered the shortcut

Parameters

event

the event to check

enableMnemonics

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.