pub fn register_shortcut<H: FnMut() + Send + 'static>(
    &mut self,
    shortcut: String,
    handler: H,
  ) -> crate::Result<()> {
    let hotkey = parse_hotkey(&shortcut.to_uppercase().replace(" ", ""))?;
    self.0.register(hotkey, handler)?;
    Ok(())
  }
/// Registers a new shortcut handler.
Registers a new shortcut handler.
Registers a new shortcut handler .
pub fn register_shortcut<H: FnMut() + Send + 'static>(
    &mut self,
    shortcut: String,
    handler: H,
  ) -> crate::Result<()> {
    let hotkey = parse_hotkey(&shortcut.to_uppercase().replace(" ", ""))?;
    self.0.register(hotkey, handler)?;
    Ok(())
  }
pub fn register_shortcut < H : FnMut ( ) + Send + ' static > ( & mut self , shortcut : String , handler : H , ) -> crate :: Result < ( ) > { let hotkey = parse_hotkey ( & shortcut . to_uppercase ( ) . replace ( " " , " " ) ) ? ; self . 0 . register ( hotkey , handler ) ? ; Ok ( ( ) ) }
Registers a new shortcut handler.
Registers a new shortcut handler .
&mut self
shortcut
String
handler
H
&mut self
shortcut
String
handler
H