Form.addShortcut method
public void addShortcut(Keys shortcut, void delegate(Object sender, FormShortcutEventArgs ea) pressed)
shortcut
is one of the key values from the Keys
enum, plus one or more of the modifiers Keys.SHIFT
, Keys.CONTROL
and Keys.ALT
.
The pressed
handler is called when the shortcut is triggered.
An exception is thrown if the shortcut was already added.
See also: Keys, FormShortcutEventArgs