private static string keyEventToString(TogglDesktop.ModifierKeys modifiers, string keyCode) { var res = ""; if (modifiers.HasFlag(TogglDesktop.ModifierKeys.Control)) { res += "Ctrl + "; } if (modifiers.HasFlag(TogglDesktop.ModifierKeys.Shift)) { res += "Shift + "; } if (modifiers.HasFlag(TogglDesktop.ModifierKeys.Alt)) { res += "Alt + "; } res += keyCode; return res; }
string keyEventToString(TogglDesktop.ModifierKeys modifiers, string keyCode) { string res = ""; if (modifiers.HasFlag(TogglDesktop.ModifierKeys.Alt)) { res += "Alt "; } if (modifiers.HasFlag(TogglDesktop.ModifierKeys.Control)) { res += "Ctrl "; } if (modifiers.HasFlag(TogglDesktop.ModifierKeys.Shift)) { res += "Shift "; } res += keyCode; return res; }