[archived content]

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

Page last modified on May 07, 2007, at 11:21 AM