export from focused element + custom input gesture text

This commit is contained in:
Asval
2026-08-10 20:14:15 +02:00
parent b1add3514b
commit 704b06b650
11 changed files with 230 additions and 312 deletions

View File

@@ -27,11 +27,13 @@ public class Hotkey : ViewModel
public bool IsTriggered(Key e)
{
return e == Key && Keyboard.Modifiers.HasFlag(Modifiers);
return Key != Key.None && e == Key && Keyboard.Modifiers.HasFlag(Modifiers);
}
public override string ToString()
{
if (Key == Key.None) return string.Empty;
var str = new StringBuilder();
if (Modifiers.HasFlag(ModifierKeys.Control))
@@ -46,4 +48,4 @@ public class Hotkey : ViewModel
str.Append(Key);
return str.ToString();
}
}
}