BarManager.PrimaryShortcutProcessor Property

Gets or sets whether a BarEditItem or an editor within it should process the pressed shortcut.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v20.1.dll


public PrimaryShortcutProcessor PrimaryShortcutProcessor { get; set; }
Public Property PrimaryShortcutProcessor As PrimaryShortcutProcessor

Property Value

Type Description

A DevExpress.XtraBars.PrimaryShortcutProcessor enumerator value that specifies whether a BarEditItem or an editor within it should process the pressed shortcut.


Bar items provide the BarItem.ItemShortcut property that specifies the keyboard shortcut associated with this item. At the same time, the same keyboard shortcut may be used by the editor hosted within this bar edit item. In this case, the PrimaryShortcutProcessor property specifies what object should process this shortcut.

  • PrimaryShortcutProcessor.BarItem - if the bar item has the same shortcut assigned to its BarItem.ItemShortcut property, the item will process it. If no such hot key was assigned, the editor's shortcut action will be performed.
  • PrimaryShortcutProcessor.Editor - the shortcut will be processed by an editor.

Note that editors cannot process shortcuts if they are inactive. Thus, this behavior works only when a BarEditItem is focused. Otherwise, the shortcut will always be processed by the bar item.

The following animation illustrates a bar edit item that hosts a RepositoryItemComboBox object. The combo box has a default F4 shortcut that opens\closes the editor's drop-down. The same hot key is assigned to the bar item, which intercepts this key and fires the BarItem.ItemClick event.

XtraBars - Primary Shortcut Processor Animation

See Also