Added pasting and sending features
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using System.Text;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace EbbesMemeClipboard.Services;
|
||||
|
||||
internal static class HotkeyFormatter
|
||||
{
|
||||
internal static string Format(ModifierKeys modifiers, Key key)
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
if (modifiers.HasFlag(ModifierKeys.Control)) sb.Append("Ctrl + ");
|
||||
if (modifiers.HasFlag(ModifierKeys.Alt)) sb.Append("Alt + ");
|
||||
if (modifiers.HasFlag(ModifierKeys.Shift)) sb.Append("Shift + ");
|
||||
if (modifiers.HasFlag(ModifierKeys.Windows)) sb.Append("Win + ");
|
||||
sb.Append(key);
|
||||
return sb.ToString();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user