mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-12 17:01:36 +00:00
Handle GLOBAL_SHORTCUT_PRESSED in TauriEvent shortcut logic.
This commit is contained in:
parent
e2c3161ac0
commit
c5c83e8525
@ -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;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user