Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static string GetKeyDownString(KeyEventArgs args)
- {
- var value = "";
- if ((Keyboard.Modifiers & ModifierKeys.Control) > 0)
- {
- value += "Ctrl+";
- }
- if ((Keyboard.Modifiers & ModifierKeys.Alt) > 0)
- {
- value += "Alt+";
- }
- if ((Keyboard.Modifiers & ModifierKeys.Shift) > 0)
- {
- value += "Shift+";
- }
- if ((Keyboard.Modifiers & ModifierKeys.Alt) > 0)
- {
- return value + args.SystemKey;
- }
- else
- {
- return value + args.Key;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement