mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-29 12:06:01 +02:00
docs(global-shortcut): typo
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user