Handle GLOBAL_SHORTCUT_PRESSED in TauriEvent shortcut logic.

This commit is contained in:
Thorsten Sommer 2026-01-24 19:40:42 +01:00
parent e2c3161ac0
commit c5c83e8525
Signed by untrusted user who does not match committer: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -15,6 +15,9 @@ public readonly record struct TauriEvent(TauriEventType EventType, List<string>
public bool TryGetShortcut(out Shortcut shortcut) public bool TryGetShortcut(out Shortcut shortcut)
{ {
shortcut = default; shortcut = default;
if(this.EventType != TauriEventType.GLOBAL_SHORTCUT_PRESSED)
return false;
if (this.Payload.Count == 0) if (this.Payload.Count == 0)
return false; return false;