docs(global-shortcut): typo

pull/916/head^2
amrbashir 1 year ago
parent fa54f3cc9a
commit 6af3216fab
No known key found for this signature in database
GPG Key ID: BBD7A47A2003FF33

@ -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");
}

Loading…
Cancel
Save