Skip to content

Commit

Permalink
remove global hotkey
Browse files Browse the repository at this point in the history
  • Loading branch information
Carsten König committed Dec 5, 2024
1 parent 6eff18c commit 17e841e
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,6 @@ pub fn run() {
let menu = menu::menu(app)?;
app.set_menu(menu)?;

app.handle().plugin(
tauri_plugin_global_shortcut::Builder::new()
.with_shortcut("CmdOrCtrl+Q")?
.with_handler(|_app, shortcut, event| {
if event.state == ShortcutState::Pressed {
if shortcut.matches(Modifiers::CONTROL, Code::KeyQ)
|| shortcut.matches(Modifiers::SUPER, Code::KeyQ)
{
std::process::exit(0);
}
}
})
.build(),
)?;

Ok(())
})
.invoke_handler(tauri::generate_handler![
Expand Down

0 comments on commit 17e841e

Please sign in to comment.