Tauri 全局快捷方式
2024-02-01 16:41 更新
注册全局快捷方式。
当 build.withGlobalTauri设置为 in 时,也可以访问此包。window.__TAURI__.globalShortcuttauri.conf.jsontrue
必须将 API 添加到 tauri.allowlist.globalShortcut 中:tauri.conf.json
{
"tauri": {
"allowlist": {
"globalShortcut": {
"all": true // enable all global shortcut APIs
}
}
}
}建议仅将您使用的 API 列入许可列表,以获得最佳捆绑包大小和安全性。
以上内容是否对您有帮助:

免费 AI IDE


更多建议: