Trait zng::gesture::CommandShortcutMatchesExt

source ·
pub trait CommandShortcutMatchesExt: CommandShortcutExt {
    // Required method
    fn shortcut_matches(self, shortcut: &Shortcut) -> bool;
}
Expand description

Adds the shortcut_matches method to commands.

Required Methods§

source

fn shortcut_matches(self, shortcut: &Shortcut) -> bool

Returns true if the command has handlers, enabled or disabled, and the shortcut if one of the command shortcuts.

Object Safety§

This trait is not object safe.

Implementors§