[−][src]Function keytokey::premade::one_shot_handler
pub fn one_shot_handler(
trigger: impl AcceptsKeycode,
id: HandlerID,
held_timeout: u16,
released_timeout: u16
) -> Box<OneShot<ActionHandler, ActionNone, ActionNone>>
Toggle a handler (layer) based on OneShot behaviour