[−][src]Trait keytokey::handlers::Action
A callback used when one single action is needed
examples: Leader invocations.
Notably implemented on &str, so you can just pass in a &str to be send to the host computer.
Required methods
fn on_trigger(&mut self, output: &mut dyn USBKeyOut)
Implementations on Foreign Types
impl Action for Vec<KeyCode>
[src]
Register multiple key codes as OnOff action
fn on_trigger(&mut self, output: &mut dyn USBKeyOut)
[src]
Implementors
impl Action for KeyCode
[src]
Register a key as an Action
that means the current modifiers are sent as well by USBKeyboard
fn on_trigger(&mut self, output: &mut dyn USBKeyOut)
[src]
impl Action for ActionAbort
[src]
fn on_trigger(&mut self, output: &mut dyn USBKeyOut)
[src]
impl Action for ActionNone
[src]
fn on_trigger(&mut self, _output: &mut dyn USBKeyOut)
[src]
impl Action for ActionToggleHandler
[src]
fn on_trigger(&mut self, output: &mut dyn USBKeyOut)
[src]
impl<'_> Action for &'_ str
[src]
send a string as an Action