tauri-plugin-prevent-default 0.7.2

Disable default browser shortcuts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const COMMANDS: &[&str] = &["keyboard", "pointer"];

fn main() {
  tauri_plugin::Builder::new(COMMANDS).build();

  /*let readme = std::fs::read_to_string("README.md").unwrap();
  let lines = readme
    .lines()
    .map(|line| format!("//! {line}"))
    .collect::<Vec<_>>()
    .join("\n");

  let src = std::fs::read_to_string("src/lib.rs").unwrap();
  std::fs::write("src/lib.rs", format!("{lines}\n{src}")).unwrap();*/
}