Function use_global_shortcut

Source
pub fn use_global_shortcut(
    accelerator: impl IntoAccelerator,
    handler: impl FnMut() + 'static,
) -> Result<ShortcutHandle, ShortcutRegistryError>
Expand description

Get a closure that executes any JavaScript in the WebView context.