docs.rs failed to build tauri-plugin-prevent-default-0.1.4
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
tauri-plugin-prevent-default-3.0.1
tauri-plugin-prevent-default
Disable default browser shortcuts in your Tauri app, e.g. F3
or Ctrl+J
.
Install
Install the plugin by adding the following to your Cargo.toml
file:
[]
= 0.1
Usage
Register the plugin with Tauri:
src-tauri/src/main.rs
You can also use flags to determine which shortcuts the plugin should disable. By default, it will disable all of them.
use Flags;
To disable all but a few:
use Flags;
// This will disable all shortcuts, except `FIND` and `RELOAD`.
new
.with_flags
.build
To keep certain shortcuts enabled only when in dev mode:
[!TIP] The plugin is guaranteed to work on Windows, but there are still tests to be done on MacOS and Linux. If you encounter any problems on these platforms, please open an issue.
Contributing
If there is any other shortcuts that I can include in the plugin, please let me know!