Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

EditorButton.Shortcut Property

Gets or sets a shortcut used to activate the button’s functionality.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Behavior")]
public virtual KeyShortcut Shortcut { get; set; }

#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.

See Also