Back to Devexpress

How to: Assign Custom Shortcut Used to Open/Close Popup Editor's Window

windowsforms-9503-controls-and-libraries-editors-and-simple-controls-examples-how-to-assign-custom-shortcut-used-to-open-close-popup-editors-window.md

latest707 B
Original Source

How to: Assign Custom Shortcut Used to Open/Close Popup Editor's Window

  • Oct 25, 2019

The following example assigns the Ctrl+Enter shortcut to the RepositoryItemPopupBase.CloseUpKey property. This allows the end-user to press this key combination in order to open and close the dropdown window while accepting the selected value.

csharp
popupContainerEdit1.Properties.CloseUpKey = new KeyShortcut(Keys.Control | Keys.Enter);
vb
PopupContainerEdit1.Properties.CloseUpKey = New KeyShortcut(Keys.Control Or Keys.Enter)