diff --git a/app/MindWork AI Studio/Tools/Rust/TauriEvent.cs b/app/MindWork AI Studio/Tools/Rust/TauriEvent.cs index c4cba654..3e537a2d 100644 --- a/app/MindWork AI Studio/Tools/Rust/TauriEvent.cs +++ b/app/MindWork AI Studio/Tools/Rust/TauriEvent.cs @@ -15,6 +15,9 @@ public readonly record struct TauriEvent(TauriEventType EventType, List public bool TryGetShortcut(out Shortcut shortcut) { shortcut = default; + if(this.EventType != TauriEventType.GLOBAL_SHORTCUT_PRESSED) + return false; + if (this.Payload.Count == 0) return false;