pub trait ShortcutTriggerExtManual {
    // Required methods
    fn compare(&self, trigger2: &impl IsA<ShortcutTrigger>) -> Ordering;
    fn equal(&self, trigger2: &impl IsA<ShortcutTrigger>) -> bool;
    fn hash(&self) -> u32;
    fn trigger(&self, event: &Event, enable_mnemonics: bool) -> KeyMatch;
}
Expand description

Trait containing manually implemented methods of ShortcutTrigger.

Required Methods§

source

fn compare(&self, trigger2: &impl IsA<ShortcutTrigger>) -> Ordering

source

fn equal(&self, trigger2: &impl IsA<ShortcutTrigger>) -> bool

source

fn hash(&self) -> u32

source

fn trigger(&self, event: &Event, enable_mnemonics: bool) -> KeyMatch

Checks if the given @event triggers @self.

event

the event to check

enable_mnemonics

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.

Returns

Whether the event triggered the shortcut

Implementors§