通知与快捷键

原生通知和当前的键盘快捷键模型。

src/lib/notifications.ts 会检查 settings.notifications、需要时请求 OS 权限,然后调用 tauri-plugin-notification。当前 schema 中该设置默认开启(不是关闭);关闭后发送会 成为 no-op。Showcase notification demo 是最快的手动验证。

macOS 由 Notification Center 控制;Windows 依赖系统通知设置和应用 identity;Linux 的可用性 及表现取决于桌面 notification daemon。

快捷键

SHORTCUTS 当前定义两个 accelerator:CommandOrControl+K 打开窗口内命令面板, CommandOrControl+, 打开设置。registry 支持用户 override 与冲突检查,但设置中的 “快捷键”目前只读:它通过 Conveyor compatibility shim 列出解析后的绑定,并没有重绑 UI。

useShortcut() 在 webview 中处理 palette。启动时 registerGlobalShortcuts() 目前通过 tauri-plugin-global-shortcut 注册两个条目,但只有 open-settings 有 route 和 native callback action。palette.open 因而同时有 webview handler 和一个 no-op native registration; 这是在把它作为 global command 依赖前应先解决的 porting 问题。发布前应为每个 global shortcut 赋予明确 action,并在各 OS 测试。

On this page