Skip to content
Discussion options

You must be logged in to vote

I got this working.

There was an additional setup of the plugin that I assume was auto-generated similar to the other plugins:

pub async fn run() {
    tauri::Builder::default()
        .plugin(tauri_plugin_global_shortcut::Builder::new().build())

Commenting out the plugin line here and instead using the design from the documentation seems to have done the trick. It should therefore look like:

pub async fn run() {
    tauri::Builder::default()
        //.plugin(tauri_plugin_global_shortcut::Builder::new().build())
        //other plugins

      .setup(|app| {
            #[cfg(desktop)]

            let ctrl_n_shortcut = Shortcut::new(Some(Modifiers::CONTROL), Code::KeyN);
            ap…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by DustyArmstrong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant