docs(global-shortcut): typo

This commit is contained in:
amrbashir
2024-05-09 05:01:28 +03:00
parent fa54f3cc9a
commit 6af3216fab
+1 -1
View File
@@ -64,7 +64,7 @@ fn main() {
tauri_plugin_global_shortcut::Builder::new()
.with_shortcuts(["ctrl+d", "alt+space"])?
.with_handler(|app, shortcut, event| {
if event.state == ShortcutState::Preseed {
if event.state == ShortcutState::Pressed {
if shortcut.matches(Modifiers::CONTROL, Code::KeyD) {
let _ = app.emit("shortcut-event", "Ctrl+D triggered");
}