mirror of
https://github.com/4sval/FModel.git
synced 2026-09-25 02:29:21 -05:00
export from focused element + custom input gesture text
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user