Skip to main content
Bar

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

BarShortcut(Keys, Keys) Constructor

Creates a shortcut that consists of two key combinations.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public BarShortcut(
    Keys key,
    Keys secondKey
)

#Parameters

Name Type Description
key Keys

A System.Windows.Forms.Keys enumeration value or a bitwise combination of these values that specifies the first key combination. This value is assigned to the BarShortcut.Key property.

secondKey Keys

A System.Windows.Forms.Keys enumeration value or a bitwise combination of these values that specifies the second key combination. This value is assigned to the BarShortcut.SecondKey property.

#Remarks

Use this constructor to create a shortcut that consists of two key combinations. If you assign this shortcut (for instance, “CTRL+J, CTRL+K”) to an item, you cannot use the first combination (“CTRL+J”) alone for another item.

See Also