Skip to content
Discussion options

You must be logged in to vote

Not yet, no, but here's the gist of it:

use tauri_plugin_autostart::ManagerExt;
use tauri_plugin_global_shortcut::{Code, GlobalShortcutExt, Modifiers};

fn main() {
    tauri::Builder::default()
        .plugin(tauri_plugin_autostart::init(
            tauri_plugin_autostart::MacosLauncher::LaunchAgent,
            None,
        ))
        .plugin(
            tauri_plugin_global_shortcut::Builder::with_handler(|app_handle, shortcut| {
                // Low effor solution. I'm sure there's a nicer way.
                if shortcut.matches(Modifiers::CONTROL, Code::KeyE) {
                    // do something
                }
            })
            .build(),
        )
        .setup(|a…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ggslayer
Comment options

@FabianLars
Comment options

Answer selected by ggslayer
@ggslayer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants