EditorButton.Shortcut Property
Gets or sets a shortcut used to activate the button’s functionality.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Property Value
Type | Description |
---|---|
KeyShortcut | The KeyShortcut object specifying the shortcut for the current button. |
Remarks
Use the Shortcut property to assign a shortcut to a button. In this case, when editing the editor’s value the end-user can press the corresponding keys to invoke the ButtonClick event for the current button. In order to handle clicking the button, see the RepositoryItemButtonEdit.ButtonClick event for a ButtonEdit control. Shortcuts for disabled or invisible buttons are not processed.
If several buttons are assigned the same shortcut, pressing corresponding keys invoke the ButtonClick event in turn for every button.
When the property value is changed, the button’s EditorButton.Changed event is fired.