KeysExtensions

public static class KeysExtensions
Extensions for the Keys enumeration

Methods

FromShortcutString

#Since v2.11
public static Keys FromShortcutString(string shortcutString)
Parses a shortcut string such as "Ctrl+Alt+Z" into a Keys value
shortcutString (string)The shortcut string to parse
The key equivalent, or Keys.None if not found

ToShortcutString

#Example
public static string ToShortcutString(this Keys key, string separator = "+")
Converts the specified key to a shortcut string such as Ctrl+Alt+Z
key (Keys)Key to convert
separator (string = "+")Separator between each modifier and key
A human-readable string representing the key combination including modifiers