Skip to main content
A newer version of this page is available. .

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

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.

  popupContainerEdit1.Properties.CloseUpKey = new KeyShortcut(Keys.Control | Keys.Enter);