[Expand]General Information
[Collapse]WinForms Controls
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Collapse]Editors and Simple Controls
    Templated ListBox Items
   [Collapse]Simple Editors
    [Expand]Included Components
    [Expand]Editors Structure
    [Collapse]Editors Features
      Text Editing Overview
     [Expand]Mask Editors Overview
     [Expand]Formatting and Parsing Values
     [Collapse]Editor Buttons Overview
       Editor Button Shortcuts
       Spin Buttons
     [Expand]Dropdown Editors Overview
      Image Editing Menu
     [Expand]Data Binding Overview
     [Expand]Appearance Customization
     [Expand]Miscellaneous Features
    [Expand]Member Tables
   [Expand]Lookup Editors
   [Expand]Token Edit Control
   [Expand]Breadcrumb Edit Control
   [Expand]Range Control
   [Expand]Image Slider
    Camera Control
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Editor Button Shortcuts

As described in the Editor Buttons Overview topic, ButtonEdit editors and their descendants can display a number of buttons within their edit boxes. Each button's functionality can be invoked by clicking a button or by pressing the associated shortcut. In these cases, an editor raises its RepositoryItemButtonEdit.ButtonClick event. Handle this event to specify the button's action. Note: pressing the shortcut and holding it pressed will auto repeat. The RepositoryItemButtonEdit.ButtonPressed event is not raised when using button shortcuts.


To specify a shortcut, use the button's EditorButton.Shortcut property. The following image shows how to do this at design time.

As shown in the image above, once the combo box's button is pressed, a dropdown containing predefined key combinations is displayed. You can then select one of the predefined values, or specify a custom shortcut using the (custom) item. The (custom) item invokes the Shortcut Editor dialog. Use this dialog to specify the desired key combination by pressing it.

These actions can be performed programmatically. The following sample code shows how to assign the CTRL+SHIFT+H and CTRL+L shortcuts to editor buttons.


The assigned shortcuts are only in effect when the editor has focus.

Expanded See Also

Is this topic helpful?​​​​​​​